Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp526402pxx; Wed, 28 Oct 2020 10:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO1g2t3FUSojsh+lgvXdPOM0BlOJiCzZN8n1ljy9JiJSYtsZPkj+HSfT1YCZ3AywJVTFQj X-Received: by 2002:aa7:dcd6:: with SMTP id w22mr8794600edu.378.1603905512137; Wed, 28 Oct 2020 10:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905512; cv=none; d=google.com; s=arc-20160816; b=wuaR2j+QMGeDBt1S2zuCqsR27UNIjm78M+WPqi9CPPlvXzIacod9Vfk6Hy5547Aa4x ZE23fwTkhlgA5i3Xqu5djrodeKaHvzU7/rV4Er0mjWepFvNCKFccKqUZYLkVEauIcIzs TDsA6syNrjQ4kICwnpUTCOu0sp0nsyDjTGRvZI/yzcOBgm4HUz9Q2dylvaw5tDOrInXw ZCzYLNKNQHmYAddSGMm+6BbBtCX4RXL0PT81qUvac7OEk70yfpjqOhr6cJEmAMu+Gqnj nN5BQGS4/EVl6sW4UCveiWXtOqiFPQHr/z7IRb8DfAeYYBNtjKK8jUTi0lo1K0wNoiNX 3ynw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KZjUuvhhDBbByXzv6aO1Poxkq78lXhYO+ptH75K7q6I=; b=K4SYTgHPQNr0ZNE+Fk7dXaIDkJRbu7PpK1PgXM0S2hUyH1cVhV4dYaGsajHvH2CL+1 AZA0wGOAUPpw0Q/M+hlrUTfkeCH/Kk+xjo+6Cc7SVhp/28zqq+fwURonmdsG3CXJAKOh cvVhl5Kh/faM8RtHeiYS5OXKhkgmD9PEUKQR+jQ1maRDA9ILNIZbujoCGct0DGD3sihl QguhIxROmBZBZQzbDtPBxh7YRfHhDpZqfILvAJQjldjB8VMUP1o/k3rIqsLwJkYIYJvZ cD/IeJ1UcZdFJ4wT698tmq/ctF7eZPTs7aK4XXYipFTqd+y1BuJ7g6O9TgtQvuI3KHIG mTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j4U2dVJr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si9672edr.422.2020.10.28.10.18.10; Wed, 28 Oct 2020 10:18:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=j4U2dVJr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1820773AbgJ0RiJ (ORCPT + 99 others); Tue, 27 Oct 2020 13:38:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:33838 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760550AbgJ0OfE (ORCPT ); Tue, 27 Oct 2020 10:35:04 -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 9AEFE20709; Tue, 27 Oct 2020 14:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809304; bh=QoV0sOGotoRLrNP8yMdiqkTdSfiy1IoMZEqqfGacw0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j4U2dVJrDHSlu4AcR2HPhljQ8TZZMGB0ezSRqTTiLsHuWd8wHpyHpjyia0lomIc34 kxpMQCeMsYBSvWoPaTojwPsVL3nsNUpkedx1dyWIBG84Wrs6cx5jqsD7n0g2tpsD+0 /mXR9ItXEkomFcR6ibF/h7oIwGPSip1OePVliQcQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.4 118/408] scsi: qla4xxx: Fix an error handling path in qla4xxx_get_host_stats() Date: Tue, 27 Oct 2020 14:50:56 +0100 Message-Id: <20201027135500.579382654@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit 574918e69720fe62ab3eb42ec3750230c8d16b06 ] Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Link: https://lore.kernel.org/r/20200802101527.676054-1-christophe.jaillet@wanadoo.fr Fixes: 4161cee52df8 ("[SCSI] qla4xxx: Add host statistics support") Signed-off-by: Christophe JAILLET Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla4xxx/ql4_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 5504ab11decc7..df43cf6405a8e 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -1220,7 +1220,7 @@ static int qla4xxx_get_host_stats(struct Scsi_Host *shost, char *buf, int len) le64_to_cpu(ql_iscsi_stats->iscsi_sequence_error); exit_host_stats: if (ql_iscsi_stats) - dma_free_coherent(&ha->pdev->dev, host_stats_size, + dma_free_coherent(&ha->pdev->dev, stats_size, ql_iscsi_stats, iscsi_stats_dma); ql4_printk(KERN_INFO, ha, "%s: Get host stats done\n", -- 2.25.1