Commit 94c3c0a8 authored by Mark Haverkamp's avatar Mark Haverkamp Committed by Jens Axboe

[PATCH] aacraid: 2.6 fix panic on module removal

This patch moves the list_del before the host data is freed up.  The aac
struct is invalid once scsi_host_put is called.
Signed-off-by: default avatarMark Haverkamp <markh@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 149021cb
......@@ -663,10 +663,9 @@ static void __devexit aac_remove_one(struct pci_dev *pdev)
kfree(aac->fibs);
list_del(&aac->entry);
scsi_host_put(shost);
pci_disable_device(pdev);
list_del(&aac->entry);
}
static struct pci_driver aac_pci_driver = {
......
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