From 867b33e8d99b991e729e3eaf95c22dcca4ef5714 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 7 Feb 2004 17:42:44 -0800 Subject: [PATCH] [PATCH] cciss: Fix freeing of incorrect IO memory address From: mikem@beardog.cca.cpqcorp.net This patch fixes a bug where under certain error conditions we bail and try to free our I/O memory. This patch is in the 2.4 tree. --- drivers/block/cciss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index ce3ff054c8930..4f0367493c91a 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -2234,7 +2234,7 @@ static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev) #endif /* CCISS_DEBUG */ if (cfg_base_addr_index == -1) { printk(KERN_WARNING "cciss: Cannot find cfg_base_addr_index\n"); - release_io_mem(hba[i]); + release_io_mem(c); return -1; } -- 2.53.0