Fix use after free on error.
Found with: Coverity Prevent(tm) CID: 4722
This commit is contained in:
parent
81bfc0fc44
commit
c25d9e1d96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208820
@ -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…
Reference in New Issue
Block a user