Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp181602pxx; Wed, 28 Oct 2020 01:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW3313fYCndXJwy2YFi+Ism3pmfpJcJSJ+LHGQG2mC+Wrn1/Zli895zFT6MPZnfj/Q+l4O X-Received: by 2002:a17:906:4a14:: with SMTP id w20mr6276061eju.513.1603875284587; Wed, 28 Oct 2020 01:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603875284; cv=none; d=google.com; s=arc-20160816; b=S5t5/sx/G5sQZcvGBAj7NZZUCYY2cpJeJ/7eawUChtE4G/xqoLonRhUTKeINGiCavI Y+jGsekQf0A1iMBbzyFq9I4AJhV1onIANC6NKaWl3CHkgWUwohfxilcT1YjpH/SD/2uN kbgINHLdKIPf3VXSo45Cb4+lj2piGYqVW1CaJBsZM7P0H1RDQuz8QzyX56WSOGPQJY55 zozCo1LWG5NDG2G/3GalqjQr2/RYUviByD7mDfVoVYHwOnYUf66s619fOdm4Mq6+L9Tm QksRm1UaWBrwwkWPtv975P1R/OO92Kutry/xdPmS3Rjv7T/AmI9dz+E0RXK40qAhMJdm Artg== 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=wz2YEUSPCZOwvnW3HIqMivcQHxtGsQ/7qTAY8Yhi0Yw=; b=u/TNCZpPT33xu6Pz5WeGHyC4Ra6DXIN701W8s6X0jFIVz6vVOglkTbeENzPGmbZHuY yPcPaNEv3t9E6uFPxDvlBauUnoL3iAdIewZh5oVQn5IIymT5SdPVR5kLLxDCCtDW+LjU rV1DXyKu+s5L/lQiykrq0Q14VHVG8kSkIC01299ZVwCxmrQgWHWDIQKkIppkZP69dnz8 jEYidJYBbTcMd1ncGhSmRqNLYkaLHF8GgdDcnt4womAAE3XWCLklkzfLOSh40Nkd+YxB nYyqaPw5ywfeNR0IW+HuiaiylzxBwZ7AA8Xf/WBERX8hXlaj/Sf5LfW+xh61NObD41jL uneQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="id7/ovQ5"; 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 gf17si2900638ejb.226.2020.10.28.01.54.22; Wed, 28 Oct 2020 01:54:44 -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="id7/ovQ5"; 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 S1756535AbgJ0ON7 (ORCPT + 99 others); Tue, 27 Oct 2020 10:13:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:59238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755502AbgJ0OKN (ORCPT ); Tue, 27 Oct 2020 10:10:13 -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 1FC112072D; Tue, 27 Oct 2020 14:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807813; bh=E4QCxjw7AIRait7zcO6CDapApQNcx69yccefz4ogoKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=id7/ovQ5TeSNVGZFUNheXhwBxO/9iF8aOzKq3teHLlBlmteATJy2j1LWUvyqaf5wQ cMWaHPr+hpkxBKV8SKkzYQD5EaJMUBa5TSh4KCI4oYhQMbfdTKgndj2n4VoIx8yz6g yZ9P8HihGwj4NkTIxqy8KU07wW2vGSrK5LfG+ujM= 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 4.14 051/191] scsi: qla4xxx: Fix an error handling path in qla4xxx_get_host_stats() Date: Tue, 27 Oct 2020 14:48:26 +0100 Message-Id: <20201027134912.183115176@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@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 fb3abaf817a35..62022a66e9ee2 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -1223,7 +1223,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