From c0e3a6acdebc5b98c65a379460df1b4b2fe6c0d3 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Wed, 26 Apr 2017 15:43:59 +1000 Subject: 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 Signed-off-by: Finn Thain Signed-off-by: Martin K. Petersen --- drivers/scsi/mac_esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/scsi/mac_esp.c') 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: -- cgit v1.2.3