diff options
Diffstat (limited to 'usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c')
-rw-r--r-- | usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c b/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c index 45b7d4db87..5cff040236 100644 --- a/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c +++ b/usr/src/uts/common/fs/hyprlofs/hyprlofs_vnops.c @@ -1275,7 +1275,9 @@ static int hyprlofs_seek(vnode_t *vp, offset_t ooff, offset_t *noffp, caller_context_t *ct) { - ASSERT(VTOHLN(vp)->hln_looped == 1); + if (VTOHLN(vp)->hln_looped == 0) + return ((*noffp < 0 || *noffp > MAXOFFSET_T) ? EINVAL : 0); + return (VOP_SEEK(REALVP(vp), ooff, noffp, ct)); } |