Message ID | 1486161655-2307-10-git-send-email-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Deferred |
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 D6BF1602B7 for <patchwork-target-devel@patchwork.kernel.org>; Fri, 3 Feb 2017 22:42:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C208E2815E for <patchwork-target-devel@patchwork.kernel.org>; Fri, 3 Feb 2017 22:42:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6C1E28425; Fri, 3 Feb 2017 22:42:17 +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 5FC652815E for <patchwork-target-devel@patchwork.kernel.org>; Fri, 3 Feb 2017 22:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753069AbdBCWmM (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Fri, 3 Feb 2017 17:42:12 -0500 Received: from mail-co1nam03on0070.outbound.protection.outlook.com ([104.47.40.70]:7975 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753036AbdBCWl5 (ORCPT <rfc822;target-devel@vger.kernel.org>); Fri, 3 Feb 2017 17:41:57 -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=5V0etSM1nPgcBDQntrmqVCDrSTe5GNLAOEKHHGnOwnA=; b=Pm4vZkZKEbJbD2vZ968MqgxaiBkYR7uy0juDrMQn//mQPck8x9IsY8YC7rG1cM8CYFXdg62Psw4KA2BRrpxQtrdwEFrRmPi0vg2wVVPeflr5IbxBRgHxHQrMh7ci8MPkE2LgCCRtqQxCT68uSqSeUHixlM08DWHPa6N9YmzwWT8= Received: from DM2PR07CA0041.namprd07.prod.outlook.com (10.141.52.169) by BLUPR0701MB2083.namprd07.prod.outlook.com (10.163.122.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.12; Fri, 3 Feb 2017 22:41:54 +0000 Received: from BN1BFFO11OLC001.protection.gbl (2a01:111:f400:7c10::1:152) by DM2PR07CA0041.outlook.office365.com (2a01:111:e400:2414::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, 3 Feb 2017 22:41:54 +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 BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.888.7 via Frontend Transport; Fri, 3 Feb 2017 22:41:51 +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, 3 Feb 2017 14:41:25 -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 v13MfBji002372; Fri, 3 Feb 2017 14:41:11 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v13MfBoL002371; Fri, 3 Feb 2017 14:41:11 -0800 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <target-devel@vger.kernel.org>, <Bart.VanAssche@sandisk.com>, <hch@infradead.org>, <nab@linux-iscsi.org> CC: <giridhar.malavali@cavium.com>, <linux-scsi@vger.kernel.org>, <himanshu.madhani@cavium.com> Subject: [PATCH v2 09/14] qla2xxx: Fix memory leak for abts processing Date: Fri, 3 Feb 2017 14:40:50 -0800 Message-ID: <1486161655-2307-10-git-send-email-himanshu.madhani@cavium.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1486161655-2307-1-git-send-email-himanshu.madhani@cavium.com> References: <1486161655-2307-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)(199003)(189002)(4720700003)(33646002)(2906002)(92566002)(101416001)(626004)(47776003)(80596001)(4326007)(50466002)(6666003)(356003)(305945005)(5660300001)(69596002)(54906002)(48376002)(76176999)(1691005)(4001430100002)(189998001)(5001770100001)(107886002)(105586002)(2950100002)(36756003)(42186005)(5003940100001)(50226002)(86362001)(8656002)(106466001)(8936002)(50986999)(81166006)(38730400001)(81156014)(2201001)(8676002)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB2083; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:trddltjJNiQYiuGiVTw08L3n1rrD4yHgnc/WHh4otDhV7OLOAI6gXTQIZCPELMxGg/Ol8O5Q6S/QRurSgv6aZSN1WlR5QNWBIWY4r0YuLhKIW6vUAnh4CbQ5QBhAxw94rRdhR733ZaVSZHTvqYi3S3PvU1uZ9rK0u3OXCjhVKzJ5MdPksUf8XIDQdTLvt7zL3c5hSPPXN2UmRpHoMVeZQPQ7iznG1s6cRKn4Jc4c77eHwPoPWnL9aKmE2rsqfuP/O/tCNA8F3tbT5oLnxKy+4WSKBfAepahPBWFynBr48h1kMYHOqnBgX3N/XUNBSPF5RU1C8XkNbYuccFEVfm9xiXs3PeiZqIU9xFzt6Rjg08Q3dJKoA4+JjsMisfCev9qwVdYoSOWg+av6n/qsBR13OwUCqYoh2ckuEaYDpMDFhaiq+ctjotT8HlhDfbUO/CRAK0OLt6jFxP1XTD6SUlA0aWrhwLuMaWgb2kvwId6MJYvOpuFiVw3fhtfFuCT3VXkr1w6cD5oxHBvl1cFkPDcp1mBKFnDGwNhXN8b3Zb//b6Y= X-MS-Office365-Filtering-Correlation-Id: 9618528b-6064-4fb9-2a77-08d44c85d9e8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BLUPR0701MB2083; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB2083; 3:LPRT3WfFKFvmjo7oyOUXhNA5uPmimU/tZzwjBYyfQCzAi8A+sjSOp85ycq62cyabFsVq/yIKnAPZqOUzHEDzu4iEy0cZq2SwIxwBkoWyMDE1qlFfEC4svVB4v/rjMpVpUupKicZr4ByHtwMVKYZYQSeeFQL+L61Om4PaPz/7bsRpXUoQ993r9EQwxtu+T/7V5N0zQqahh23e6e4zbkzCCDc8hvmpQVWi8lUkcqULQRZ5c2j3i0wYtFQg84CX/06pkPy544bsXyZTLxfu/ObuFKYQnJIgQtHkeodFCWZE13P5aHvVw2YlcoqP64UlETiM9JDLnbwtLdzPgH07c8Nb3MuGfqwbSF5r5l85YIPrLbV7eQem/0Z6vdBC3s9+roMG;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LbkRquERRzv1+ykH0VZj2i+CjxjSMe/EhNOK7jLOo5sxaAksOUMtmyBlZSybqL9xtjDigNIedgHA4RYD+wCVz6xmeorQQMEeVJTXRj5i+Oy+nO9jsay5KiQg7ddyMvkpGLf1SuBapCbpMZt7A7T/8uFAWMyL5jDXY8RzOQvUTjuiR/XLu8GNQLG6MsUZCH7rMu9hxpFCmRK7xkM10so0Pd4GS6Ggg6UUl4IU5mgJSIm/9VBlX9Lbgd+O9QGI X-Microsoft-Antispam-PRVS: <BLUPR0701MB208389D12F76DD62DF616FBBF54F0@BLUPR0701MB2083.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(13023025)(13024025)(13017025)(8121501046)(5005006)(13015025)(10201501046)(3002001)(6041248)(20161123558025)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:BLUPR0701MB2083; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB2083; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB2083; 4:lpoEBWlXKIG3o6xQiekRYiaN2bnZJwu7mOrjZdVc7nSvczzcuh1WKbQlt/+4Nz9fGHyoIvhYHv4FAZR13YstIOX7Mgqj1hG0aEhZrto7wDekfj3dyLWXI4Zethvvkbzm/VGUsuvGrz+DwvciAPiF/IZ2psnwDV+ZKyJxSgoYTSmotf1gclh28zBEH64LvMSLNf++hps3b5g5NonF5SZXiLVSMhtm+DcVuE0dWCwltsZrfeu0IHUgpqlnUXC5lvJquHFfhI7KIT7saVUFwZjolGhasl0U5+FJFKW3/jK0LaUG02lEE3aHyM64fnL/O8L2HEtcXmICKCsb88rIDs1pPo/bZTmXSZ7s/46J2PCnDDFC6kovMllFHyp1FzTMsVi+SRhfyw8+P1FjAtOc7ptE0gOa73kw7EzeuvsLJ+pG251GwiUTI0VliBxq+u8bf0D233fROGdciNxDzQVk2F/CB9oR6xKqVBmTPOjb5lBIrP6vj/dGqG8BU0FBIO8TsxiCwFcVwlsowN+Mtz5S+ssNwaqd+2QUEpSX78/nlgMvX+ydBFlPreI5EKcl/gwHuDkEWxf7aGUkPM/tFsNY0OeYdQy9YwFFJqkivQmbbSdzj8dllE+wSlYunj4Y6TdiX/jyUuCYV6/jNmOQjz9qBqT3dOHbp03mcvz7Z8Ip+peIrUaR/P9KzN84abry4oEDjXMjysMtcmFLoQD3DZrR3MIOxg== X-Forefront-PRVS: 02070414A1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB2083; 23:ot8Pu/uCiYssss15RTEmP6/ITUD1KzULWkwiWGO?= =?us-ascii?Q?fNBRHeTSuhU8ydi7AYubryIXh8Rv9JuqgpdvYTGRUfHycd3X6JF4WTdEhfxG?= =?us-ascii?Q?j6XBwBeFhwHSt7mzRVKsqkr2P8EEP2VdPGjDBvEBw1m31C4GDi5B+e9MDscz?= =?us-ascii?Q?m372H7bgVO7idivOuuqd0Dl8q67OJLJGXJs1tWwVg8NeTtEUrDlYHy91pIFE?= =?us-ascii?Q?K8nH1XvluydHZcbQjq/D2zcgV1Y5dCZOneS9zqnhydJkM/GqH8RiLqJamJBE?= =?us-ascii?Q?CKHR3XP2nSkdMrA6/BXtkiqQVakEWIDwbirS/34ORbCTgWKuFxfhNeHngqnc?= =?us-ascii?Q?hqZp3xXUrE9YKBucQ1qO6l5qOLMZqfujjgUrq+dk18VdihNK2jKYGaRwfEC0?= =?us-ascii?Q?YBKO5Wofu7ykwL0lCWLtfI8MSkJq6hYofHWBKNH77H3ozxbqIcsNr2v2HXjV?= =?us-ascii?Q?0mctCRXrOxibpWgCnyiWEZRnNseobFbn5mxJogmxrthfN/wgu1ZtDTwv4gKj?= =?us-ascii?Q?ajySPIZh3tLqj50Bd8e3eyFKmXl42QN/V/2cSiW72jXqqMP0wbJ8H7WAu1k+?= =?us-ascii?Q?+ZCYzGUiNReg8wG0JcVBusgYzQ7zrgy2Fkht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86t2NJtfC3tL9Y6sntWfLuGt2zKprW2/uDJp6BvodMIFS7VBjx3Bywu7C6ncXV+qy4qzSieQFDYedAmqk1TwPZq6/nJrA=; 5:TRyIQo/4Dm1ib/WV0jMkZCctF7FcIs2cXVXbRpyTI1Xkjf2yD/5wefiS1CUBhbbqhBFLBtPoPiT+sqmI/zz334fpcRWIZKgMa7nhr67UUZ0d05QYtSU6eBB1wH4bSnxKjqu+GpnqSUB2X1mjt+5+M3cK0UZ5GKI+s3Sizc/JP1o=; 24:4D93uOljYfx15mBkqUithfMv9qXo32c0TewUM2xHd35GtiEC4sBeS3DZjAxL6sTZEIBBs1xnfHT+4jkK4WR77ZR2vBBeLqxyB+huxwb/QQw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB2083; 7:dGTPmojJ3UgAjCLJn/ZrKcRKTKiSR2KoBehSjLi8eBBI8a3vFdxWlX55G4LARrr9KA5XlyOSqsO+leL9OsEFm3N2DQgcf7Psba446XyqcNi5+fCp5ENYWlflfRH27KTn0D1q3O0hxEs7+2/xzXaQEeFRaWrPlSAhZQQcN+6nlgXnVTSackdoCLR7iQMPbqSQB8jqkWcrGtFVPRMCW0MbanTphgChYfJWS2XaHkmHCYTqRLyT5RcIxWr+/7DIYz9tmfkxj/kuD4vGrjzIDUhNZ4eFjhstyY0FAVx2YrMGIZ+Fge0bq2iZHZi2dvmhK5z34FVHtPV1F25xjDU9N22oxo/mazS66rinEgwtQoR25ID8PfrVvS1vSLZ/UZ37h21kmUVMfJhf0zAZo3eIeGJO/54kZ1k3Fq1/cjsSZ9ItEn7fMR5lGALsA6jItXf4SRvnILRafD46Nee/hcypQaphzL4b0gj/53rL2iUi+Wq794EhAck27mdiG4nroFoMFzDCXCoSeKCXioYA3ALC4lDgB7/VXk5P2ekweC+aJP/2iye4dbdNuV3wz1/R9xMEIV44 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2017 22:41:51.7751 (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: BLUPR0701MB2083 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 359a79d..b61cbb8 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6753,6 +6753,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