mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
KASSERT that condition raised by Coverity cannot happen.
Found by: Coverity Prevent (tm) KASSERT by: sam
This commit is contained in:
parent
0d7e26de54
commit
445e33e4ac
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue