summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-04-22 15:40:27 +0000
committerpjd <pjd@FreeBSD.org>2004-04-22 15:40:27 +0000
commitf8b184242af7edf25ea6a9f81ddca33d1f59d7fe (patch)
tree03e48d5e5d01a73bc53a8308937f48c46dce9841 /sys/kern/vfs_syscalls.c
parent88b338f0a21fcde00d1b43bd876200cb0e52a0bb (diff)
downloadFreeBSD-src-f8b184242af7edf25ea6a9f81ddca33d1f59d7fe.zip
FreeBSD-src-f8b184242af7edf25ea6a9f81ddca33d1f59d7fe.tar.gz
Look out! vn_start_write() is able to return 0 and NULL 'mp'.
Submitted by: Alex Lyashkov <shadow@psoft.net>
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index f30577e..593ec75 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -197,6 +197,8 @@ quotactl(td, uap)
vrele(nd.ni_vp);
if (error)
return (error);
+ if (mp == NULL)
+ return (EOPNOTSUPP);
error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td);
vn_finished_write(mp);
return (error);
OpenPOWER on IntegriCloud