KASSERT that condition raised by Coverity cannot happen.
Found by: Coverity Prevent (tm) KASSERT by: sam
This commit is contained in:
parent
89827f3cc8
commit
3d4c810fbe
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user