Skip to content

Commit

Permalink
scsi: mac_esp: fix to pass correct device identity to free_irq()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Martin K. Petersen committed Apr 26, 2017
1 parent f481973 commit c0e3a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/mac_esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ static int esp_mac_probe(struct platform_device *dev)
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:
Expand Down

0 comments on commit c0e3a6a

Please sign in to comment.