Fix use after free on error.
Found with: Coverity Prevent(tm) CID: 4722
This commit is contained in:
parent
81bfc0fc44
commit
c25d9e1d96
@ -133,6 +133,7 @@ ata_ali_chipinit(device_t dev)
|
||||
bus_release_resource(dev, SYS_RES_IOPORT,
|
||||
PCIR_BAR(i), res->bars[i]);
|
||||
free(res, M_TEMP);
|
||||
return ENXIO;
|
||||
}
|
||||
}
|
||||
ctlr->chipset_data = res;
|
||||
|
Loading…
x
Reference in New Issue
Block a user