diff options
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/fs/hsfs/hsfs_vnops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c index 66d4b6cfef..5375f883ae 100644 --- a/usr/src/uts/common/fs/hsfs/hsfs_vnops.c +++ b/usr/src/uts/common/fs/hsfs/hsfs_vnops.c @@ -1585,8 +1585,7 @@ hsfs_getpage( /* does not support write */ if (rw == S_WRITE) { - panic("write attempt on READ ONLY HSFS"); - /*NOTREACHED*/ + return (EROFS); } if (vp->v_flag & VNOMAP) { @@ -1798,6 +1797,9 @@ hsfs_map( if (vp->v_flag & VNOMAP) return (ENOSYS); + if (prot & PROT_WRITE) + return (ENOSYS); + if (off > HS_MAXFILEOFF || off < 0 || (off + len) < 0 || (off + len) > HS_MAXFILEOFF) return (ENXIO); |