Destroy "bip" bio in error case.

Found by:	Coverity Prevent analysis tool
Coverity ID:	795
MFC after:	3 days
This commit is contained in:
pjd 2006-03-22 00:42:41 +00:00
parent 58fb8ecbe6
commit b746cfb8d4

View File

@ -3065,6 +3065,7 @@ dev_strategy(struct cdev *dev, struct buf *bp)
devtoname(dev)));
csw = dev_refthread(dev);
if (csw == NULL) {
g_destroy_bio(bip);
bp->b_error = ENXIO;
bp->b_ioflags = BIO_ERROR;
bufdone(bp);