diff options
author | mav <mav@FreeBSD.org> | 2010-06-05 08:44:40 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-06-05 08:44:40 +0000 |
commit | 0f3a1006c261164953bc6a55848fbd55cb4d6a77 (patch) | |
tree | 6c55db5b1f5c52803662114a02222871cd342365 /sys/dev/ata | |
parent | 508015d598daa20a8ec94364f3594515a2360d24 (diff) | |
download | FreeBSD-src-0f3a1006c261164953bc6a55848fbd55cb4d6a77.zip FreeBSD-src-0f3a1006c261164953bc6a55848fbd55cb4d6a77.tar.gz |
Fix use after free on error.
Found with: Coverity Prevent(tm)
CID: 4722
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/chipsets/ata-acerlabs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/chipsets/ata-acerlabs.c b/sys/dev/ata/chipsets/ata-acerlabs.c index fee9692..791dea8 100644 --- a/sys/dev/ata/chipsets/ata-acerlabs.c +++ b/sys/dev/ata/chipsets/ata-acerlabs.c @@ -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; |