From: scameron@beardog.cca.cpqcorp.net Date: Thu, 17 Apr 2008 11:19:04 +0000 (+0200) Subject: cciss: fix warning oops on rmmod of driver X-Git-Tag: v3.12-rc1~21990^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6195057f5809e93cdb1ec733f7b9c87fe2212f98;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c index 45ac093..e4bf9a1 100644 --- a/drivers/block/cciss_scsi.c +++ b/drivers/block/cciss_scsi.c @@ -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