diff options
author | Alexander Motin <mav@FreeBSD.org> | 2010-06-05 08:44:40 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2010-06-05 08:44:40 +0000 |
commit | c25d9e1d966ce03c15b440b88e46aa1c3b98420b (patch) | |
tree | 6c55db5b1f5c52803662114a02222871cd342365 /sys/dev/ata/chipsets/ata-acerlabs.c | |
parent | 81bfc0fc446b7aafe3877cd9c28379997cf65573 (diff) | |
download | src-c25d9e1d966ce03c15b440b88e46aa1c3b98420b.tar.gz src-c25d9e1d966ce03c15b440b88e46aa1c3b98420b.zip |
Fix use after free on error.
Found with: Coverity Prevent(tm)
CID: 4722
Notes
Notes:
svn path=/head/; revision=208820
Diffstat (limited to 'sys/dev/ata/chipsets/ata-acerlabs.c')
-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 fee9692ebd5e..791dea8e64a9 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; |