diff options
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_lock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/nfs/nfs_lock.c b/sys/nfs/nfs_lock.c index 4e670f2..ac52410 100644 --- a/sys/nfs/nfs_lock.c +++ b/sys/nfs/nfs_lock.c @@ -104,12 +104,12 @@ nfs_dolock(ap) */ if (fl->l_len < 0) return (EINVAL); - if (fl->l_whence == SEEK_END) - return (EOPNOTSUPP); - if (fl->l_start < 0) - return (EINVAL); - if (fl->l_len != 0 && (fl->l_len - 1 > OFF_MAX - fl->l_start)) - return (EOVERFLOW); + if (fl->l_whence != SEEK_END) { + if (fl->l_start < 0) + return (EINVAL); + if (fl->l_len != 0 && (fl->l_len - 1 > OFF_MAX - fl->l_start)) + return (EOVERFLOW); + } /* * Fill in the information structure. |