Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp171908pxx; Wed, 28 Oct 2020 01:31:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLUqop5LqCmqw12iEofXljVTnQ+PUi7hsDiI6SM1T2C1sStHVgmWhsvJboQrs1k+EeMhDk X-Received: by 2002:a17:906:a981:: with SMTP id jr1mr6218135ejb.99.1603873912762; Wed, 28 Oct 2020 01:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603873912; cv=none; d=google.com; s=arc-20160816; b=QkbrpBoYSG7lsKZ3+wseU5YC5uM8Zx2GdbtnMaW6PYwpiOTBviXMBbmcRSQou8lclU 0uwb/mmvb2who7UphFtW5ARCSPMzZe7ZN663wd8Pl+mrPSZ9xDrJuFnbyH6zqjjBoVln ylm8S0e3GRiqfIxicT27DhvyxtHg2Ktgy+QHnlVC5AI5xCQaHEF13P5CTopOsFAyn7W9 3j6W4Wed+Y4LYY2vpe2fmtc0zicViwm5eitDQX3/GkAOchqXSmhueDkugLSFsds7B7mz l+IiWQkA8gDSpI9cL5WioqvBMFvAfAkj0OMLa0ndYZmMTng3r6tj7xfZFc9JZZzl8rQh 1uww== 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=UN4ZRkhcGmT00a2DwxT+6MKCY/GCrHWglfmilNZvaHQ=; b=rKXpGIdy5UTTZ845hr3UCf1BXUbAF5gqtOBa2c4TGXYMAutEmOxdprQVa/sjHLc1Jv e5yKPCMdbs6lcByS7SLJ0ZvZrtsSPpM5rgk+vFKtbI5QnSp2BbiiksuvQQbS1nQs1MVC PwqjJtt73CxWByV0HPRg0DkYZ6AptncJtyVFNpwCg/CClStHHp7O8k7gQa+oZgTo2k+V q+FNGNGgLVhtwL5ALbTjSnUjq3U+rWDRMNsbM97iyAaT+I0AL577bZwAc7C6/LgUefRd hC9T7I5sEJ6y7Kyn+65PHq7gjnD/XK/QXRimRuxlN3CaDdaVGk8Oht/9A3YdeY8YHVuC 6kuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TcAQwcqp; 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 l12si2820211edk.163.2020.10.28.01.31.30; Wed, 28 Oct 2020 01:31:52 -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=TcAQwcqp; 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 S1754315AbgJ0OFD (ORCPT + 99 others); Tue, 27 Oct 2020 10:05:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:53064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2900860AbgJ0OEt (ORCPT ); Tue, 27 Oct 2020 10:04:49 -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 EF0B02222C; Tue, 27 Oct 2020 14:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807487; bh=6NBAEUVFpxc4x1YYsbZlGveUAnM3ZCPXTBKEHsU8lTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TcAQwcqpWSw1jQnP9vj8GNpVgjq2F5r5bFVVv5kbw8f5JA4ghjVANTedJAMNu1qi6 KTYI83IUJ6L4qRcDlIlUU+fq1LNCpKS2cHBKdt49i+tD4Xe/ImRdRNzuwSD2DAdwII eAckmcsCKpn54x+7cwJCn0hf9uoXbZjqb3X0fLZA= 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.9 032/139] scsi: qla4xxx: Fix an error handling path in qla4xxx_get_host_stats() Date: Tue, 27 Oct 2020 14:48:46 +0100 Message-Id: <20201027134903.664735320@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@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 3fda5836aac69..f10088a1d38c0 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