From patchwork Fri Jun 26 03:59:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 11627249 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AEADF92A for ; Fri, 26 Jun 2020 11:34:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 787B3206A1 for ; Fri, 26 Jun 2020 11:34:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="2BRn038Y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Ld/e77tT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 787B3206A1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=wanadoo.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dVZktLc1ZNjUipaoUNfGq1QdRIFUUkg0xsgbjDfjMHQ=; b=2BRn038YRToPEXN8bD6dCtEA9 wm66nllHUNj2yP75fElzUB6ucAExpK4a6XeiCVZALnka7AOzi/4TayQASZsc4jfrOn0CCCM5Lj69w cmWo0MeoDFtAAFIixrtnlvxuFQLaEtlhpVnYhXiSfrn7LLFWITXpXyfiD4lHFM9TCeo1EHTi28ElQ SeJDllh9A+zsdMCRFVOx0Z5t2+EW4SI9dc3btRbos46/IcQx6DQQVHazgclFqWO9XUMW7x2aOwlaB D2ewJl42AzcCQxbOiSiQQNWBLY0h+VQifTlwmsclXqJXLDIniTdPUu122kpXYbOxkjTxGKuhb4Vwa 9EEGaoJCQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jombY-0005QM-Lc; Fri, 26 Jun 2020 11:33:12 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jolJc-0001wR-So for linux-arm-kernel@merlin.infradead.org; Fri, 26 Jun 2020 10:10:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=JjdcTboxWklFWJCshdw4+oTI5SSXK5CMTUGKoVYzna0=; b=Ld/e77tTvD7xYbXJeLl1aCj0oq MsM2AiI8AE7/K2D+wbo/drHiP0lk/WRKToXXoTOvIjlB418BhTdIUe1eyz3hxXNjctV0JUR2i3jYs sm2oxV+WSciCXoi3+1NTx3VjjBdKIm+e0DcxUoseg6xEcVhmc/9i9FkPfTcdB93vVvziUDGzxwKDB Y/c7eIraC7wqynFPIzfTDFN7Wg0BlV4QU1ifjXIdOjhg7cqwHqag0ke/thTuqGO6DOG4cJXzmYS6g eQgxw2tzTPdCQGMxCOdoU1pY0RIEHOhnr+QYF7i/2xeO1Vb1eFmwsPS2W7YkfhbM2/+7+3/KZVQfi D7SCauNw==; Received: from smtp08.smtpout.orange.fr ([80.12.242.130] helo=smtp.smtpout.orange.fr) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jofWy-0007IE-T1 for linux-arm-kernel@lists.infradead.org; Fri, 26 Jun 2020 04:00:02 +0000 Received: from localhost.localdomain ([92.148.198.76]) by mwinf5d16 with ME id vfzs220031fPLi403fzsg6; Fri, 26 Jun 2020 05:59:58 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 26 Jun 2020 05:59:58 +0200 X-ME-IP: 92.148.198.76 From: Christophe JAILLET To: linux@armlinux.org.uk, jejb@linux.ibm.com, martin.petersen@oracle.com Subject: [PATCH V2] scsi: powertec: Fix different dev_id between 'request_irq()' and 'free_irq()' Date: Fri, 26 Jun 2020 05:59:48 +0200 Message-Id: <20200626035948.944148-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: <08f63617-03df-71cf-70c4-00f08a9f51d8@wanadoo.fr> References: <08f63617-03df-71cf-70c4-00f08a9f51d8@wanadoo.fr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200626_050001_084889_DD5CFAE5 X-CRM114-Status: GOOD ( 10.65 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [80.12.242.130 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [80.12.242.130 listed in list.dnswl.org] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christophe JAILLET , kernel-janitors@vger.kernel.org, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The dev_id used in 'request_irq()' and 'free_irq()' should match. So use 'info' in both cases. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET --- V2: update free_irq instead of request_irq in order not to obviously break code --- drivers/scsi/arm/powertec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/powertec.c b/drivers/scsi/arm/powertec.c index 772a13e5fd91..d99ef014528e 100644 --- a/drivers/scsi/arm/powertec.c +++ b/drivers/scsi/arm/powertec.c @@ -378,7 +378,7 @@ static int powertecscsi_probe(struct expansion_card *ec, if (info->info.scsi.dma != NO_DMA) free_dma(info->info.scsi.dma); - free_irq(ec->irq, host); + free_irq(ec->irq, info); out_release: fas216_release(host);