Message ID | 20200921162034.699647556@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=lyed=C6=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DECEEC43468 for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 16:32:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BF6A2399C for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 16:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600705970; bh=drZYiRmwOVUnvr3J1YCJlIMxqcOH5GZK3mbze+Ex65E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BHOMUCTgncRurj4Iwhme3R9siWIH0Xdxu33AABJxYIHbjo0FyZXEspdZJVZwMrEWd Z3mXd7qr/GkYmFSMVJmw+ua97NEV8hpTM01K1rYpgQ9ZzLETzNGNa7cTgVp8Ha1pSz 0SwhlYpKT8xLTVqheVjA3pkDSAPq8MCnfJHsRFh8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728530AbgIUQcq (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 21 Sep 2020 12:32:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728453AbgIUQci (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 21 Sep 2020 12:32:38 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9404823976; Mon, 21 Sep 2020 16:32:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600705958; bh=drZYiRmwOVUnvr3J1YCJlIMxqcOH5GZK3mbze+Ex65E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=smvN8+HZG6dhO9+FZaoWed+rzjWBjzdOBNM9rM6hscEkmruyEyb1c1ykHbEeZrwt4 RR0mxRxrqj5ZGlrk0Vg+W0xRRzjJmwjFwgpBURE+27D/W4nRLJzhUPQfEbOA7GJnZk eX6MzJpG9z9w5ZTlGtYjhua0XgExWZk9dOPOxgIc= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Jack Wang <jinpu.wang@cloud.ionos.com>, Dinghao Liu <dinghao.liu@zju.edu.cn>, "Martin K. Petersen" <martin.petersen@oracle.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.4 30/46] scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort Date: Mon, 21 Sep 2020 18:27:46 +0200 Message-Id: <20200921162034.699647556@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162033.346434578@linuxfoundation.org> References: <20200921162033.346434578@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index 3862d8b1defe3..ee6c941123e10 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -792,7 +792,7 @@ pm8001_exec_internal_task_abort(struct pm8001_hba_info *pm8001_ha, res = pm8001_tag_alloc(pm8001_ha, &ccb_tag); if (res) - return res; + goto ex_err; ccb = &pm8001_ha->ccb_info[ccb_tag]; ccb->device = pm8001_dev; ccb->ccb_tag = ccb_tag;