diff options
author | Toomas Soome <tsoome@me.com> | 2020-09-02 12:21:37 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-09-08 08:46:27 +0300 |
commit | e4af2f17fac5babc25d094f1bf22dd06515f66c7 (patch) | |
tree | cd8e0b0fa51b15d678fac58453c0132929a06022 | |
parent | 7aaede4825001926ae223b8c47ef9e4d0d6021ba (diff) | |
download | illumos-joyent-e4af2f17fac5babc25d094f1bf22dd06515f66c7.tar.gz |
13104 zfs: offset_t is signed and can not be > MAXOFFSET_T
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/uts/common/fs/zfs/zfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/zfs/zfs_vnops.c b/usr/src/uts/common/fs/zfs/zfs_vnops.c index 162c565c45..a4b5a17f73 100644 --- a/usr/src/uts/common/fs/zfs/zfs_vnops.c +++ b/usr/src/uts/common/fs/zfs/zfs_vnops.c @@ -4841,7 +4841,7 @@ zfs_seek(vnode_t *vp, offset_t ooff, offset_t *noffp, { if (vp->v_type == VDIR) return (0); - return ((*noffp < 0 || *noffp > MAXOFFSET_T) ? EINVAL : 0); + return ((*noffp < 0) ? EINVAL : 0); } /* |