diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2007-10-14 13:50:58 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2007-10-14 13:50:58 +0000 |
commit | 6c98d0e9db548ed4f67e22c6f99ebf6318aae781 (patch) | |
tree | cb38c7ee0e56cce692bc4c8638f0aa41a7d48cbb | |
parent | 57821163d381ee2a884b33a7bc71376e1935b8dd (diff) | |
download | src-6c98d0e9db548ed4f67e22c6f99ebf6318aae781.tar.gz src-6c98d0e9db548ed4f67e22c6f99ebf6318aae781.zip |
Added NULL check code pointed out by Coverity. (via Stanislav
Sedov. Thanks)
Submitted by: Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by: jeff, kensmith
Approved by: re (kensmith)
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=172640
-rw-r--r-- | sys/fs/unionfs/union_vnops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index d3b2684338ef..0437fe2d299e 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -1450,6 +1450,8 @@ unionfs_readdir(struct vop_readdir_args *ap) /* * readdir upper and lower */ + KASSERT(uvp != NULLVP, ("unionfs_readdir: null upper vp")); + KASSERT(lvp != NULLVP, ("unionfs_readdir: null lower vp")); if (uio->uio_offset == 0) unsp->uns_readdir_status = 0; |