mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Add KASSERT() to warn against NULL deref.
Submitted by: sam (Coverity)
This commit is contained in:
parent
37ce43b71e
commit
682249c035
1 changed files with 1 additions and 0 deletions
|
|
@ -579,6 +579,7 @@ ida_done(struct ida_softc *ida, struct ida_qcb *qcb)
|
|||
if (ida->flags & IDA_INTERRUPTS)
|
||||
wakeup(qcb);
|
||||
} else {
|
||||
KASSERT(qcb->buf != NULL, ("ida_done(): qcb->buf is NULL!"));
|
||||
if (error)
|
||||
qcb->buf->bio_flags |= BIO_ERROR;
|
||||
idad_intr(qcb->buf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue