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)
This commit is contained in:
daichi 2007-10-23 03:33:43 +00:00
parent c4a793469a
commit 0fb12d7a9a

View File

@ -1451,6 +1451,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;