cciss: fix warning oops on rmmod of driver
* Fix oops on cciss rmmod due to calling pci_free_consistent with irqs disabled. Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
e14ac67026
commit
6195057f58
|
@ -1349,9 +1349,9 @@ cciss_unregister_scsi(int ctlr)
|
|||
/* set scsi_host to NULL so our detect routine will
|
||||
find us on register */
|
||||
sa->scsi_host = NULL;
|
||||
spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
|
||||
scsi_cmd_stack_free(ctlr);
|
||||
kfree(sa);
|
||||
spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue