summaryrefslogtreecommitdiff
path: root/drivers/scsi/mac_esp.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-04-26 08:43:59 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-04-27 01:31:23 +0300
commitc0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3 (patch)
treed1a641ef7019b3c23ba899d783ca4fbef7b597e6 /drivers/scsi/mac_esp.c
parentf481973d5efdb63b7c6ca6b0ecd2b8462556a461 (diff)
downloadlinux-c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3.tar.xz
scsi: mac_esp: fix to pass correct device identity to free_irq()
free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mac_esp.c')
-rw-r--r--drivers/scsi/mac_esp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c
index 26c67c42985c..999699d45e14 100644
--- a/drivers/scsi/mac_esp.c
+++ b/drivers/scsi/mac_esp.c
@@ -587,7 +587,7 @@ fail_free_irq:
esp_chips[dev->id] = NULL;
if (esp_chips[!dev->id] == NULL) {
spin_unlock(&esp_chips_lock);
- free_irq(host->irq, esp);
+ free_irq(host->irq, NULL);
} else
spin_unlock(&esp_chips_lock);
fail_free_priv: