diff options
author | daichi <daichi@FreeBSD.org> | 2007-10-14 13:50:58 +0000 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2007-10-14 13:50:58 +0000 |
commit | 1f6ec6407c416255ffb5b76182a231f71eecb26b (patch) | |
tree | cb38c7ee0e56cce692bc4c8638f0aa41a7d48cbb /sys/fs | |
parent | bf7aeca620ccf8e886a32e2f04f82d808264471f (diff) | |
download | FreeBSD-src-1f6ec6407c416255ffb5b76182a231f71eecb26b.zip FreeBSD-src-1f6ec6407c416255ffb5b76182a231f71eecb26b.tar.gz |
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
Diffstat (limited to 'sys/fs')
-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 d3b2684..0437fe2 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; |