Message ID | 1487972263-3795-10-git-send-email-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <target-devel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 22A06601AE for <patchwork-target-devel@patchwork.kernel.org>; Fri, 24 Feb 2017 21:38:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12C1628947 for <patchwork-target-devel@patchwork.kernel.org>; Fri, 24 Feb 2017 21:38:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 079282895A; Fri, 24 Feb 2017 21:38:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C7B128947 for <patchwork-target-devel@patchwork.kernel.org>; Fri, 24 Feb 2017 21:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751367AbdBXVi1 (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Fri, 24 Feb 2017 16:38:27 -0500 Received: from mail-by2nam03on0050.outbound.protection.outlook.com ([104.47.42.50]:2048 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751314AbdBXViR (ORCPT <rfc822;target-devel@vger.kernel.org>); Fri, 24 Feb 2017 16:38:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LLMfTSNK9j6i2RugEb6jj3RkZFy/awFbFYmVo4UDWeo=; b=QHB4s7iwHgar+BRjzRZdZKl6tPPVv/0bK5DjAPknRb4cq2B/qzr69FGO35owSLqsjMbLQPeyJIrVS5v44zH8f5X7kq2oAVIJ0iG+A4Af6EmAyYQ+u4tEXEykSVVuPlBuo0TSjE0iG/cF3psltUqXu035E/0AUO+73v8KhKazvn0= Received: from BY2PR07CA0088.namprd07.prod.outlook.com (10.166.107.41) by BLUPR07MB627.namprd07.prod.outlook.com (10.141.207.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Fri, 24 Feb 2017 21:38:00 +0000 Received: from BY2FFO11OLC016.protection.gbl (2a01:111:f400:7c0c::111) by BY2PR07CA0088.outlook.office365.com (2a01:111:e400:7bff::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Fri, 24 Feb 2017 21:37:59 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; linux-iscsi.org; dkim=none (message not signed) header.d=none; linux-iscsi.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BY2FFO11OLC016.mail.protection.outlook.com (10.1.15.61) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.919.10 via Frontend Transport; Fri, 24 Feb 2017 21:37:59 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.309.2; Fri, 24 Feb 2017 13:37:45 -0800 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v1OLbjZx003860; Fri, 24 Feb 2017 13:37:45 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v1OLbjmV003859; Fri, 24 Feb 2017 13:37:45 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <target-devel@vger.kernel.org>, <Bart.VanAssche@sandisk.com>, <nab@linux-iscsi.org> CC: <giridhar.malavali@cavium.com>, <linux-scsi@vger.kernel.org>, <himanshu.madhani@cavium.com> Subject: [PATCH v3 09/14] qla2xxx: Fix memory leak for abts processing Date: Fri, 24 Feb 2017 13:37:38 -0800 Message-ID: <1487972263-3795-10-git-send-email-himanshu.madhani@cavium.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1487972263-3795-1-git-send-email-himanshu.madhani@cavium.com> References: <1487972263-3795-1-git-send-email-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(2980300002)(428002)(189002)(199003)(36756003)(5660300001)(8656002)(42186005)(50986999)(76176999)(1691005)(92566002)(47776003)(33646002)(6666003)(4720700003)(81166006)(101416001)(81156014)(8936002)(105586002)(2950100002)(107886003)(5003940100001)(38730400002)(8676002)(69596002)(54906002)(50226002)(4326007)(80596001)(626004)(356003)(2906002)(189998001)(2201001)(106466001)(48376002)(50466002)(86362001)(305945005)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR07MB627; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC016; 1:fHDHH8vm2DK+hyw6m9goe1Wf4jr7CkKSWbx7x7fKXkyuNpRfZLQOJ8XC1v0OcnRVbHkC5y4gKTNJeG9ynrVuXD6aeF19D/Cl/d4MI3VMyNKGryRnYT0yWNAYo5woENjt5MNgyGuvrLr+2ux+kc5cyh2SU5Zyd4+Q0hXUh2WDd2+r9ordtkO0V3jFCYqV1Zhx3carFOP9kEs3Gew+kji+YS3etCig0ZBdXdUCmth5lB+rRVsXFB9lBKetqFQcITUEfKEr/DqBpeSqYDE+FxhNumHXvazwztzEhjGu4DSTCZK5unPEFfzlPJwUt5ZIhzMKDWAd6igLDo4ff4YdmNRKHBqrnK7xTCTVP+q/nOctImGHdfJIddhzIeUVYfyjVd6uB+6S7lslg4RcJnf6MkEUejgtJl5NZ2PHi5hO7hehoSWuP8VjsJpBHZw/ZYIpCKSM3CANrJp8/3muJyRkFQItWBzbD5qtv69I5frXIuX37FigD2idFVzYf2UGohceaHxq77qDcwpMHOGVCz0GzLpX0IkWpAlKCPeVW0t5mvqG33I= X-MS-Office365-Filtering-Correlation-Id: fbbc09fb-7257-450d-2e89-08d45cfd6798 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR07MB627; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB627; 3:/K1Wj1iXs545cw8lL1jRbkJa/6QRJQ8VeN/NsCfwuGw//tWoQ5oe3X5bkBgcmPbRNtuLN3UlOv84hM8BjeAWbmLYb3NfWA6E7z0RBySEWr0/VyuRDpyzGHMgqABo4CaTLss5APhv/54QRMAZmF69IWrMIGMDN7X6qzYP8T8NV7XeF6NruwmXMg2qZzQRNhb0EjhmJmKvksDfdPlb1JRYgpwfA1lD1WdZwRvxdqaTmWwKB1L36ZehLJCQ1GxBasbJ0RhDTa2Up6UKGQ1IuS1Qg4iTTHAjuO3UrNSVRDbgfTd1WdyZK1pXXdxC9AsBL4pJdp8L87s/XKuDtx8XILNRvMufl7XIewdqx5l0J2uSw9Oi+q/13kFvCDpyKhTV1DfQ; 25:F+ivcfZVSinXK9gu+BIfYrjMkx2UfEhO4kPwt/Z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He+MB2VIIR/TAdlAZujKPKJCPzCXCxpsN0qam6LVvIlAwzbN2oYNEe4WbuCsUauzIQLHFjwdI6XcdJEaV4oeNNt0GLGBX3FfCnXW/Nq0RDuG8YH4SXhpquXJv5f/KOmd5z7/rfsbueVL8bptUlQ+Q/3Vkjlx6/I4XvBjbwA90485lYelKS0JF9jPaQe1mW X-Microsoft-Antispam-PRVS: <BLUPR07MB627B83CDF25BB03A683591BF5520@BLUPR07MB627.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13017025)(13015025)(13024025)(13018025)(13023025)(10201501046)(3002001)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123558025)(20161123564025)(6072148); SRVR:BLUPR07MB627; BCL:0; PCL:0; RULEID:; SRVR:BLUPR07MB627; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB627; 4:9A+0yUMolTnZg4MSqtcSxFGDM+Y9QDF8GofivkWB58YQB6m2oSCuKLYKn0kEqswW/xtHd0yapZP0xpUN5URKWwkh26OSM7nQPSZz44gLq8EYG+SeWWdVOs3kq1uuPEiZiqJO66T7VaSxgJPeLc6B1vTH6zbqUgn88gRX/rtHqWyIWLyPROYCp85HInyWEdMTdbeRkwtxO2Hu0Yzi5f8gYjZm09w1HlB2aDyEmlPFTWSw+XcrebFioj62buFZXGHHG4K2ebJ9Sn/0E6kOpU7fyjfIhuwRGq1ZUmvhaGK+CnchmjG+pET2TkbFc1eGK2XWbKa+nntKunONNFVDn98HKqz/xWbVPFfeLUz8vEa8dukBy0fdyaEIZL+61sRtwm8v2AKvpvw7Tpa3IcBwE7d/05cWn/4V+glHmsZlX42F0EMtYdkYJwJy1Y6SW6wd3rA2bXroGLXK23towYAdJcLZCY99l/Spu+2mg1lGka939ZGYBYUDe268EPig5T9hGqYbSjXq+quAfDzuqVf+8J4zcKCbNZbMGPl9d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nkUnYxfxWgi7i39umt3NRrStlJg+xN0s0mevJ1TUD3FMJs/jXbsjrvbpnTXeQkwfA8GdcB2NltNSv4PWV3v1pKqK10LGSvSrxslkMgDrNsrjG3ieVFf9rYn50o6GSg4FX2M=; 24:SCmwJiEKYDdzlh0gYDFYAjQS63XU4XNmfyiigrbWcT6Ad9CO0cQH8jJZgU1Bld90TXfzdpuUWSqcMravL0Ty9nESfVqjIHiCxLX48oeEpqo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB627; 7:UTpMQP48W3I8cVA3kcfq0TiHX4WE5wNb5qkJRJpd2tEzIfa9e8+/wO6Zy5J+5uX9MlwL6uW6mxwMarDYZ9QxkE/aeqp403G9FPSZILc9bN0ua8y55S88NbDLAI7UYLOuJhGp37TFDsKXHQTzt40ePia3CTjI6xP38FxmTkMgX5pNPFhgryi0wf2w6nsXrQgiwpMOuyKsxf5InG17i11JuN6l6ozn7m45V2LbSuhgT4Nkh/tFOyx5Yie8RtFLuFlVBjl60TV4rfGHkY16OulDH8OovjgNsss5OFRxSBhmIo6pD94yVExMEq+qqnKU2u5uPYvx2IDOcAR7/RUnsl04vQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2017 21:37:59.8562 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB627 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: <target-devel.vger.kernel.org> X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 2720b8f6..a09e4a5 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6766,6 +6766,8 @@ static void qlt_disable_vha(struct scsi_qla_host *vha) spin_lock_irqsave(&ha->hardware_lock, flags); qlt_response_pkt_all_vps(vha, (response_t *)&op->atio); spin_unlock_irqrestore(&ha->hardware_lock, flags); + + kfree(op); } void