Commit 867b33e8 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent f533bec9
...@@ -2234,7 +2234,7 @@ static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev) ...@@ -2234,7 +2234,7 @@ static int cciss_pci_init(ctlr_info_t *c, struct pci_dev *pdev)
#endif /* CCISS_DEBUG */ #endif /* CCISS_DEBUG */
if (cfg_base_addr_index == -1) { if (cfg_base_addr_index == -1) {
printk(KERN_WARNING "cciss: Cannot find cfg_base_addr_index\n"); printk(KERN_WARNING "cciss: Cannot find cfg_base_addr_index\n");
release_io_mem(hba[i]); release_io_mem(c);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment