Add KASSERT() to warn against NULL deref.

Submitted by:	sam (Coverity)
This commit is contained in:
Matthew N. Dodd 2005-04-13 17:36:18 +00:00
parent 37ce43b71e
commit 682249c035

View file

@ -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);