From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Yongjun Subject: [PATCH -next] [SCSI] mac_esp: fix to pass correct device identity to free_irq() Date: Tue, 25 Apr 2017 03:08:45 +0000 Message-ID: <20170425030845.7809-1-weiyj.lk@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pf0-f195.google.com ([209.85.192.195]:35957 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S980188AbdDYDIu (ORCPT ); Mon, 24 Apr 2017 23:08:50 -0400 Received: by mail-pf0-f195.google.com with SMTP id v14so6262781pfd.3 for ; Mon, 24 Apr 2017 20:08:50 -0700 (PDT) Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: "James E . J . Bottomley" , "Martin K. Petersen" Cc: Wei Yongjun , linux-scsi@vger.kernel.org From: Wei Yongjun 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 --- drivers/scsi/mac_esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c index bb567d3..dda4da2 100644 --- a/drivers/scsi/mac_esp.c +++ b/drivers/scsi/mac_esp.c @@ -580,7 +580,7 @@ static int esp_mac_probe(struct platform_device *dev) fail_free_irq: if (esp_chips[!dev->id] == NULL) - free_irq(host->irq, esp); + free_irq(host->irq, NULL); fail_free_priv: kfree(mep); fail_free_command_block: