diff options
Diffstat (limited to 'sys/nfs/nfs_lock.c')
-rw-r--r-- | sys/nfs/nfs_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfs/nfs_lock.c b/sys/nfs/nfs_lock.c index 607662c..e2fa91c 100644 --- a/sys/nfs/nfs_lock.c +++ b/sys/nfs/nfs_lock.c @@ -103,7 +103,7 @@ nfs_dolock(ap) * on ranges, so we do it. */ if (fl->l_whence != SEEK_END) { - if (fl->l_whence != SEEK_CUR || fl->l_whence != SEEK_SET || + if ((fl->l_whence != SEEK_CUR && fl->l_whence != SEEK_SET) || fl->l_start < 0 || (fl->l_len < 0 && (fl->l_start == 0 || fl->l_start + fl->l_len < 0))) |