Merge fifo_vnops.c:1.130 from HEAD to RELENG_6:
Assert v_fifoinfo is non-NULL in fifo_close() in order to catch non-conforming cases sooner. Reported by: Peter Holm <peter at holm dot cc> Approved by: re (scottl)
This commit is contained in:
parent
6817015865
commit
f58713cf53
@ -420,6 +420,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…
x
Reference in New Issue
Block a user