From patchwork Thu Feb 2 19:42:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9553167 Return-Path: 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 E913F604A7 for ; Thu, 2 Feb 2017 19:59:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC30D28480 for ; Thu, 2 Feb 2017 19:59:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D10D028497; Thu, 2 Feb 2017 19:59:29 +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 7997428491 for ; Thu, 2 Feb 2017 19:59:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751795AbdBBT71 (ORCPT ); Thu, 2 Feb 2017 14:59:27 -0500 Received: from mail-by2nam03on0057.outbound.protection.outlook.com ([104.47.42.57]:61916 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751806AbdBBT7Z (ORCPT ); Thu, 2 Feb 2017 14:59:25 -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=sR4u6gpOJRqjzEcnBcorvE+wikV3aAVR9P0RYFVXazc=; b=nSVg88aS1DhXQe06CwCgcRrZrKaa7eNTPdPmzE6GKIhOfmqYfcLfPqkE/7EgTTS/Md0kX6mQGIL2RaiK4CotpYxJC6Oafr0BSgrUHb+3SxBHXD/AFAEqTCBWZe5Ex7blU0nRvWVuPO9c4YnMdnSitOQGGSFS+Au1vydfvQIssuU= Received: from SN1PR0701CA0079.namprd07.prod.outlook.com (10.163.126.47) by CY1PR0701MB2090.namprd07.prod.outlook.com (10.163.142.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 2 Feb 2017 19:43:22 +0000 Received: from BY2FFO11FD003.protection.gbl (2a01:111:f400:7c0c::190) by SN1PR0701CA0079.outlook.office365.com (2a01:111:e400:52fd::47) 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; Thu, 2 Feb 2017 19:43:22 +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 BY2FFO11FD003.mail.protection.outlook.com (10.1.14.125) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 19:43:21 +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; Thu, 2 Feb 2017 11:43:09 -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 v12Jgtkw000432; Thu, 2 Feb 2017 11:42:55 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v12Jgt4D000431; Thu, 2 Feb 2017 11:42:55 -0800 From: Himanshu Madhani To: , , , CC: , , Subject: [PATCH 09/15] qla2xxx: Fix memory leak for abts processing Date: Thu, 2 Feb 2017 11:42:32 -0800 Message-ID: <1486064558-365-10-git-send-email-himanshu.madhani@cavium.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1486064558-365-1-git-send-email-himanshu.madhani@cavium.com> References: <1486064558-365-1-git-send-email-himanshu.madhani@cavium.com> MIME-Version: 1.0 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)(42186005)(8656002)(4001430100002)(92566002)(5660300001)(5003940100001)(106466001)(8936002)(81166006)(8676002)(626004)(81156014)(33646002)(50226002)(105586002)(54906002)(50466002)(189998001)(305945005)(1691005)(356003)(36756003)(38730400001)(4720700003)(2201001)(6666003)(107886002)(50986999)(2950100002)(76176999)(47776003)(48376002)(69596002)(2906002)(5001770100001)(86362001)(4326007)(80596001)(101416001)(87636001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB2090; 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; BY2FFO11FD003; 1:nYWUauZYxNL9OcsJgH0UcvieVfWRkCbm1+4HQKISEJwptw1HCRwb9jiiTB3PiEu653tQICmF1v+jKP569TsX5y6uHxR/KEm0UbZpxAQZHQ2J21Qfx/viV0q2hQ63pecj+x4ZqY70WGdk4yDxuoGEjaN81HovWr3kWLOW42X3T0DfggymqeooxATV9Hva4mlpwN2khsitUnkTsNzNhTcKL+iFR1AcvOJwhX0GoT7E7Dupuf+jv13Nmw5ERBD7zckWPEeVl8WyFaxzgn5RFpVxqyT6BzkCCViSgqm3SfrTXIhnrJcXxNMGmob9Q3sat6O6sFqoZadLz+zwu6JEZNpB5tTz2p6v0Wy89jd3dM08OgDpdvhExhBCKXwEf6ikufuyi3/Xza61agxN/L7bICnXfSgqZWFRtVHtMGG+jj8qQFlPnJiKKB6nY+LmG8kSHmlfH+2feU3hHwmubhtwKwgqpMi6fCIE0Q3eK1nZHpEACdcHPwynjf25BoqRKphiMGoaryD1OzAFxJFcCwQXh+uxphwKEaDAMxwt6V1CZ14SD84= X-MS-Office365-Filtering-Correlation-Id: 31aee3f1-aa3c-441b-c7d0-08d44ba3bec6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0701MB2090; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB2090; 3:p0zVjiibq724XTDXniOIgBjSBrTmgsjQagCyBrtGAlkYiGV4Bn+OAPOtd1XdQYR7cyc78afpYfODVlHmIZwCa8Em14uqMEVJVxTPLGrLnynQZN2Lhx2ZIt3hO205rB+r3dcyvjRZRxt49FuaAutHJPJfcpvnTIGxMZoHsF6+O3r1JW+VI5yQWubNphjCnDIIrSuiM9T4EC6zkn2faVI9vWuSRkQGX8FLM+ANkB1XWYy0ymidb7KjEvySbLe6R0KD8GRmTJ35SRWj40J2/lsL9jvaicUoUQ9bvV8wyjEc23Qm6Q54ZfrZxUC7C8gjZX3yZMidd1ttdxZsEh4bxz2iTiZoehe3Gf7FOtWM+sofO1g82XY0ys63+fYQMNXBybey; 25:QCskHFOynCAap2wikaDwiSkE5IoQIS8GXgeH2a87zv4qZf5kBtGzHhDop+pVk43uu4vbD492dq9SmODT68/7seUxLiVMSQmLr5KSBYiupU8uC+LMtFSa3O2MJaj/X6qFykgZG64MC566MI9KppOjCGAdi8m5PUpfbV0zjeCSjJF3BMrr1i+RENUQZ+jYbjraOQscOGOsMQ8jokRxF6ekInx1wLZ8a5m2uY5Te6ktwTSldIqyhz6W4XygBw2D5JQHA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ispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13023025)(13017025)(13015025)(13018025)(13024025)(3002001)(10201501046)(6041248)(20161123564025)(20161123558025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:CY1PR0701MB2090; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB2090; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB2090; 4:LDtp9XbrodgDqZQXaiDEBmIyJjDDdCvpEPWeOn64+/yurOuTTMgd9ZvO/yms+9rGYuhkAtAnPUIGjYevbLOzjc2sFAwYylH+v7TUd8uGaoWWiktimx8AYmqpPj676E++Q0eh7PrSchUxVo9ROU4QUphB/Eoacod0cDL0+4yJWpng+qUAmH7FUZH9gC6tyP9uz/PGBXg8KOzWvkmM6Nki1oa6Wgd/vEWe+ZifSJV+TrNOPf8jYNZaJNU/ZzPS5/quF5vxzXtbhurgq5qlbefdyPHOEXysXmmTfsp82Qt11aGb9j27pkGPt1NXmJaU36juu057mAZpCXPZMqiVW+WpF3YwqTEMX5hFbX2G9rjFsODV9rToP/if/ptZIJ1yTa7vLmVT8pke0tmxDcz4K3nHbeemlPisjFE/Dkh1hchMUYtiq58EIsI1wy1BpKk6Zaur9eSkBWomO7oq2N3w2KIbn0rf6fVW/kAjv7jym56T97c5WwUnHG+9dCWk8LnuUNVpHyddng6a/3rGJ7VySucI9XTmCUUiXSJjd6qy1v2VyWY94BX/NHVtExXHhTxCvea82HEVH5trbEYzJjGknQn1Ny1Aka7uHplUesN53xlaemdFa/Zx/U7Szq/DTGWNqSsjaprENRHB/ST8tKCxapD5ujHKn0FHqWF+iO1R4Fc1lVNNO9xdI7397PgXao7Bf0+hHXElftDOmUBJmpn2nnpFpg== X-Forefront-PRVS: 02065A9E77 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB2090; 23:VAMFNP+EwDVVsrhagCXB6YIcziGkb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FD4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB2090; 7:O7S9ibvGYCC6AV7oOoItsvLaxQH0FRq9lZWFXm5Z1aDbKMcCI+E4yBdu/e+gkgwG50h9IPjybjr0U2Xwv3Ip9ZJwfG5UaU9RsMdmYgFL1fa0u8FQtCGQ/GnSIjcnu7fb7gJue5VHheUlenbiO3F7/itfYC9w65qflsmYatbY7sVi4MRUEjGpISfJC9RsQnQaWqsRv9+mtg8eATMwVHjybYObgwNkguEkUW5aP8Nlp2ITlRXlhlDi4Rs5weyRk/lyftJznv20C7Wp5octqx2aFrqY72lJOfihnGGBwnRwM5krhpInN+cQHWrq4tUkcRxnK6IVk9aS8YFrxLwwyRHuwPgoxP1J4i+YwcfvzWBJB9Qy78333KXLYSr4vIzGXTglAY6QnDnl1CG1AouRDeeDjQnQvm+EhaOvggGWBhOGyx3degLZQOSrNkxTo56BqAUsn7/gMfRBJbbUYblzYIlKs4pccYk17aWT9It4WOEDNRksANzbp/JLkIEwcT9YAECvW0F61yQV3Xm2UaiHUzuYUnQegV1PeZuV+N/4b+8IOgWrTTKLup/iKERmAdX1Rxrh X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2017 19:43:21.6505 (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: CY1PR0701MB2090 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index d26a8cb..ab9f4e7 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6770,6 +6770,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