mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Assert v_fifoinfo is non-NULL in fifo_close() in order to catch
non-conforming cases sooner. MFC after: 3 days Reported by: Peter Holm <peter at holm dot cc>
This commit is contained in:
parent
329c75a730
commit
454c3d13be
1 changed files with 1 additions and 0 deletions
|
|
@ -429,6 +429,7 @@ fifo_close(ap)
|
|||
struct fifoinfo *fip = vp->v_fifoinfo;
|
||||
|
||||
ASSERT_VOP_LOCKED(vp, "fifo_close");
|
||||
KASSERT(fip != NULL, ("fifo_close: no v_fifoinfo"));
|
||||
if (ap->a_fflag & FREAD) {
|
||||
fip->fi_readers--;
|
||||
if (fip->fi_readers == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue