summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2020-09-02 12:21:37 +0300
committerToomas Soome <tsoome@me.com>2020-09-08 08:46:27 +0300
commite4af2f17fac5babc25d094f1bf22dd06515f66c7 (patch)
treecd8e0b0fa51b15d678fac58453c0132929a06022
parent7aaede4825001926ae223b8c47ef9e4d0d6021ba (diff)
downloadillumos-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.c2
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);
}
/*