]> git.hungrycats.org Git - linux/commitdiff
[PATCH] cciss: Fix freeing of incorrect IO memory address
authorAndrew Morton <akpm@osdl.org>
Sun, 8 Feb 2004 01:42:44 +0000 (17:42 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 8 Feb 2004 01:42:44 +0000 (17:42 -0800)
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

index ce3ff054c89309d67134678c2a0eb917b4b5694b..4f0367493c91a471d448565c17267e0f6db8cc6d 100644 (file)
@@ -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;
        }