KASSERT that condition raised by Coverity cannot happen.

Found by:	Coverity Prevent (tm)
KASSERT by:	sam
This commit is contained in:
mckusick 2010-01-07 06:20:07 +00:00
parent 89827f3cc8
commit 3d4c810fbe

View File

@ -632,6 +632,7 @@ restart:
goto fail;
}
}
KASSERT(bp != NULL, ("no buffer allocated"));
dp = (struct direct *)(bp->b_data + (offset & bmask));
if (dp->d_reclen == 0 || dp->d_reclen >
DIRBLKSIZ - (offset & (DIRBLKSIZ - 1))) {