Destroy "bip" bio in error case.
Found by: Coverity Prevent analysis tool Coverity ID: 795 MFC after: 3 days
This commit is contained in:
parent
58fb8ecbe6
commit
b746cfb8d4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user