diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-04-26 15:43:59 +1000 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-04-26 18:31:23 -0400 |
commit | c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3 (patch) | |
tree | d1a641ef7019b3c23ba899d783ca4fbef7b597e6 | |
parent | f481973d5efdb63b7c6ca6b0ecd2b8462556a461 (diff) | |
download | linux-c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3.tar.gz linux-c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3.tar.bz2 linux-c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3.zip |
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>
-rw-r--r-- | drivers/scsi/mac_esp.c | 2 |
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: |