aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata/chipsets/ata-acerlabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ata/chipsets/ata-acerlabs.c')
-rw-r--r--sys/dev/ata/chipsets/ata-acerlabs.c1
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 cf503c591b2d..9d19fa0382ca 100644
--- a/sys/dev/ata/chipsets/ata-acerlabs.c
+++ b/sys/dev/ata/chipsets/ata-acerlabs.c
@@ -127,6 +127,7 @@ ata_ali_chipinit(device_t dev)
RF_ACTIVE);
if (res->bars[i] == NULL) {
device_printf(dev, "Failed to allocate BAR %d\n", i);
+ /* XXX: Flexelint: Reuse of for loop variable 'i' at 'line 124' could cause chaos */
for (i--; i >=0; i--)
bus_release_resource(dev, SYS_RES_IOPORT,
PCIR_BAR(i), res->bars[i]);