From patchwork Thu Jun 25 20:47:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 11627261 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 C92ED14F6 for ; Fri, 26 Jun 2020 11:39:39 +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 A07512082E for ; Fri, 26 Jun 2020 11:39:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MlzAMgoE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="peNdJEpx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A07512082E 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=jSYhRFcyCswF3fczRRzrISICnxGOacVIRCjoMQoM0jI=; b=MlzAMgoEvJIBUJnuG2PoQRMLs jjl2bOdlYmSgLubdaNtJc46zOLQgL5is6Q92jYLkdmiz+usRYMrIC2K67NFosxzOAggdWTLVa0RqV a2ewnUbCxl09Cl6BJFuNGDbNlyve9tKj7TSitZpFQeR4L0lTRCFDfk2/kahErTi0v4CXDcftbul3A pEVYjZetHG9fS4ep7LppJ9TOXnuWTS/SSxMMK358TVGS5IGYzZwMcmLedqODFJxdOQI/AY3h/Lcpd wsG7Le0+9ewggsSrxRt+LolAmK6r0JQ3cI85ry6xGq/vEcT8DpbuZHU/BUuZ6iHdzQtKSmPrzVURn l4kue6mqQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jomgA-0007cQ-7Y; Fri, 26 Jun 2020 11:37:58 +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 1jolL4-0001IL-K9 for linux-arm-kernel@merlin.infradead.org; Fri, 26 Jun 2020 10:12:06 +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=2M9i1dI0/kMPmfu3z0AtjDEjNb8pQuvgRPDxsypJYnc=; b=peNdJEpxn2prJ7JJ/d1TbHi3qL jOSEtmjL2SJuyF2cl0d2j+Jx1znWxfXjriTdQL1gC11v/o/GGAanABwXFRj/2IiMipjQTu9r5dUD/ AWqi3XJ8zherN84tTz3WAMfp1podhxNMAxnyvM6Z5PgsA2EF+BNG9s39XFBD5SQYnJGQoSGxKstDS VZNjjjKMdDw8molO87DRjaN73jCWVt1DggboFCak6+nE3rZL5yf+5lxlfOPN3GhwIku2UOL93zfB5 +6BoglNykTpMh14nu0geb3PcxOR2NSKl97dlO627uNSmmWZFOCUQTOWMoTkHxrlb7e2HkVszJ/WVW +//mLhaw==; Received: from smtp09.smtpout.orange.fr ([80.12.242.131] helo=smtp.smtpout.orange.fr) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1joYmW-0005PS-9f for linux-arm-kernel@lists.infradead.org; Thu, 25 Jun 2020 20:47:38 +0000 Received: from localhost.localdomain ([93.22.134.133]) by mwinf5d69 with ME id vYnY2200D2sr5ud03YnYEE; Thu, 25 Jun 2020 22:47:34 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 25 Jun 2020 22:47:34 +0200 X-ME-IP: 93.22.134.133 From: Christophe JAILLET To: linux@armlinux.org.uk, jejb@linux.ibm.com, martin.petersen@oracle.com Subject: [PATCH] scsi: cumana_2: Fix different dev_id between 'request_irq()' and 'free_irq()' Date: Thu, 25 Jun 2020 22:47:30 +0200 Message-Id: <20200625204730.943520-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200530073555.577414-1-christophe.jaillet@wanadoo.fr> References: <20200530073555.577414-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200625_214736_659236_DC780489 X-CRM114-Status: GOOD ( 10.91 ) 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_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [80.12.242.131 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [80.12.242.131 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 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. Use 'info' in both cases. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Christophe JAILLET Acked-by: Russell King --- V2: update free_irq instead of request_irq in order not to obviously break code --- drivers/scsi/arm/cumana_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/cumana_2.c b/drivers/scsi/arm/cumana_2.c index 65691c21f133..29294f0ef8a9 100644 --- a/drivers/scsi/arm/cumana_2.c +++ b/drivers/scsi/arm/cumana_2.c @@ -450,7 +450,7 @@ static int cumanascsi2_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);