Message ID | 20170315164856.17255-3-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 A9F2160244 for <patchwork-target-devel@patchwork.kernel.org>; Wed, 15 Mar 2017 16:50:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CAF528641 for <patchwork-target-devel@patchwork.kernel.org>; Wed, 15 Mar 2017 16:50:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9180D2866B; Wed, 15 Mar 2017 16:50:57 +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 25F4528641 for <patchwork-target-devel@patchwork.kernel.org>; Wed, 15 Mar 2017 16:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbdCOQuz (ORCPT <rfc822;patchwork-target-devel@patchwork.kernel.org>); Wed, 15 Mar 2017 12:50:55 -0400 Received: from mail-sn1nam02on0083.outbound.protection.outlook.com ([104.47.36.83]:12448 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753091AbdCOQtJ (ORCPT <rfc822;target-devel@vger.kernel.org>); Wed, 15 Mar 2017 12:49:09 -0400 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=iVepYPUwyg0eGN659QrESInVHBGIMI2HtWwCCuJ0IMU=; b=IlxULJ+EIje2KsPmFU/CPGGVfw/O23C5xVt6zqukn36Ciybybft+qQ1zU/l0tBYruwig3qs64xTsCqnYfwTuKOg10XJ2cGzHmWyV1VztRRCsH2yEfwjE+Qg2yCW6u+T1gH9X8HbANwlS7Vobmp7P4ZVYnJT4h/3RMfBoOfJzRo4= Received: from CO2PR07CA0039.namprd07.prod.outlook.com (10.141.194.177) by DM2PR07MB477.namprd07.prod.outlook.com (10.141.159.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Wed, 15 Mar 2017 16:49:06 +0000 Received: from BL2FFO11FD042.protection.gbl (2a01:111:f400:7c09::108) by CO2PR07CA0039.outlook.office365.com (2a01:111:e400:1414::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11 via Frontend Transport; Wed, 15 Mar 2017 16:49:06 +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 BL2FFO11FD042.mail.protection.outlook.com (10.173.161.138) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.961.10 via Frontend Transport; Wed, 15 Mar 2017 16:49:05 +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; Wed, 15 Mar 2017 09:48:57 -0700 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 v2FGmvfQ017298; Wed, 15 Mar 2017 09:48:57 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v2FGmvov017297; Wed, 15 Mar 2017 09:48:57 -0700 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 v4 02/14] qla2xxx: Fix memory leak for abts processing Date: Wed, 15 Mar 2017 09:48:44 -0700 Message-ID: <20170315164856.17255-3-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170315164856.17255-1-himanshu.madhani@cavium.com> References: <20170315164856.17255-1-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)(39450400003)(39410400002)(2980300002)(428002)(189002)(199003)(9170700003)(8676002)(5660300001)(36756003)(86362001)(189998001)(2201001)(50226002)(81166006)(47776003)(8936002)(33646002)(105586002)(1076002)(42186005)(107886003)(2950100002)(50986999)(4326008)(76176999)(6666003)(356003)(5003940100001)(305945005)(101416001)(54906002)(8656002)(38730400002)(50466002)(48376002)(80596001)(2906002)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB477; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD042; 1:w45knyN5YnzeEVMxvFYL30j9wfCxd+2c0L9o111aMbeOaXqaxPyOsEDRWLvxYFjlFysFQqrLNsIAjBLzmwVnys23HmLXWgRufmmeEa10ej5nFl+wmIX486fIt9UwBIvKR2du9Jdvi+J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UDq7CyQfM9Zt5MaLgs9BeQXdKRErNVFrEjA/3xLnpuQrqEHWpO0+iAAOMgOt7uBmxkgGpW3bto3aBVdvql33LbB0Rek8D0raUS74j641Uamf3XVL9nF7uix+z6Lh5C X-Microsoft-Antispam-PRVS: <DM2PR07MB4773E69F145BFF00160C114F5270@DM2PR07MB477.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)(13017025)(13023025)(13024025)(13018025)(8121501046)(5005006)(13015025)(3002001)(10201501046)(6041248)(20161123558025)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6072148); SRVR:DM2PR07MB477; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB477; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB477; 4:beYst2zqMwL/tsgy3c4wrz23CP7dJtWREb0t/aDQ4DZ5B1zZymagXiOGlBFGu3PapB3bDYBgX4cnlquOMqo0B0RPx6Ro3UmIAAOu26Bk7HWj++ZWpjvTB7uQxg5iCd1rcXvLzsC3vGGAwlrocyxEt6x8ibnxF/202mfguYtaBb3ODDCgDzs+45jt6MDxnC4T6N3MtLHGgsQKGzPqLUxvJLj3kKstm81IpzxMTqiWJlurIIcEO2hUAWtPAE3phwTwELDlwbLUahveoUbWk39nvIul7YQoVHZrZzbVzGHKOJCUEfzaqKVdX1duFkIMBQqYb6NDO2//9/7ILdaLWaLansjl8pm6qfd0xC5wVTcQTTVWvyGZt0OkmKgc+8h20F/CER6iEJBvOrLYMrTkM0o9UtnsHKkZ/6+BcEXQ9/WJHz2+J6ler2XN96j4YxGXHNdtCHdM7oaT61ZhLHo7zUfTYRCClxDKzhyRm10JmB9Ww+qApxfWYUEx0zA8FZHnQklslqWRPl8YmjhH9SCeyG8uHknQss8YLpQtrb9qikKqopvlX6Qu18fwZOxusc5OcwkK43WF9civr2KMu+yG9fF8fnDywf48co2ILcNIatX7upeat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acFNdYHo+XSyChHHqdfeuiiy5pwXoUM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB477; 7:KRmMGLzwuw3DgDI65x0VSurB8YvZjnjuMFwTAKbsmWDnnO+tXKokU9ld2G/UPY/81quuL8I21Dv9ih6qIxGCRDLIrkIFVyFCw2UZ9VPbdf9Hm11vfPT4G6+dpMakLUkoCXLQ5SBInMhCi1BMobaJyvK7fS/SJWIMmTgRXPD92MRPhiltJfbbEZYKDkuQO3XrTG1zXdLjDrrVLhRWf1KTCEsmE7zeZ9XYD/9cWtIfBv2AXnTRUWo1TD+snpxZA9xZWK28h/JyoltHBKbj/3J3zQu6tpIVbAUnM+PNYhP0n7g0p1DRhg0hHg1bJKN/8+VfG79mjqGhqW7A/PmI1wdIkw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2017 16:49:05.5660 (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: DM2PR07MB477 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 45f5077684f0..ecf97c5993e8 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6642,6 +6642,8 @@ qlt_handle_abts_recv_work(struct work_struct *work) 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