Received: by 10.223.185.116 with SMTP id b49csp5471788wrg; Wed, 7 Mar 2018 12:20:27 -0800 (PST) X-Google-Smtp-Source: AG47ELt1dM92Z3EATPvON6eep0bOdjRBXOcjMGGas1w1IkoN6bFoo5qEfrShbuzoo2YQwR/N1++u X-Received: by 10.99.101.69 with SMTP id z66mr19307619pgb.347.1520454027792; Wed, 07 Mar 2018 12:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520454027; cv=none; d=google.com; s=arc-20160816; b=qc0PdFNkpBBlBhG3NCd2CvbRMc4SQHRhUnzGodMQELS4EFisrDNVlUc0UjLsDQpfqh ueYMDtUDgUJoh5E7nT4Go4GBG7v1LpqsvY8S2oYlRNYnCmwZLZK077YawSKmoNw3Qn6o 6/YlUvGU/kySqnzoA9Rb/1Yjeuww3TzFpyepbb5OLiwfHoZTMurtkFr853MlAC7ur6YV AXL96xLrPXFIzDHZ9vnk+6y+qbW6F/0mhm1xLLIcB8f2zbLJGIAQ5Z83ZoErJCmoPgUQ MpSeLZCa+E4sfX4awHZ60mj2k5jpQ+5UCbV8kDmgwW7aRw+fROubicIUvksURXEzoe4E aVbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=agTTyaNY9G6+XtgxspZIrt3ODWGbCEkPQ/zSLw/Ovl8=; b=kRf04E11hEnsBAOimDjhrKvpBUTSOpf/CNljKzZ1J256C0ImZghFcIWsP9zvQpskKU eVggGdak1SvE7gkEbAby/gZa4SSLwkV9HbLUZB+6Aq+QNZXBJZTrQ6P01URkPOGAjC2s u8VbpIHeppP0LPnQ3K6JoHlBWjvGB49/xlG6KvLNhm7d6NekPtcrXrBlIEfj1dPS5UjA T9G08WeAxASRJAG0p8ctKZM50c2t4oFDllR9i/uRZWpxr56d+WKHMtcHVd+p0gmV8tmH YzOl8xzC0YQheZYWWQbk3UhJox2Qwkm4bOfvxjXeOxxAUXEGpP+OU0hrNuWW3iVQ5jkn PUjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si11759805pgn.197.2018.03.07.12.20.13; Wed, 07 Mar 2018 12:20:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965007AbeCGTnz (ORCPT + 99 others); Wed, 7 Mar 2018 14:43:55 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:43522 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964997AbeCGTnw (ORCPT ); Wed, 7 Mar 2018 14:43:52 -0500 Received: from localhost (unknown [185.236.200.248]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 678FF31; Wed, 7 Mar 2018 19:43:51 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rahul Lakkireddy , Ganesh Goudar , "David S. Miller" Subject: [PATCH 4.15 079/122] cxgb4: fix trailing zero in CIM LA dump Date: Wed, 7 Mar 2018 11:38:11 -0800 Message-Id: <20180307191740.644113692@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180307191729.190879024@linuxfoundation.org> References: <20180307191729.190879024@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rahul Lakkireddy [ Upstream commit e6f02a4d57cc438099bc8abfba43ba1400d77b38 ] Set correct size of the CIM LA dump for T6. Fixes: 27887bc7cb7f ("cxgb4: collect hardware LA dumps") Signed-off-by: Rahul Lakkireddy Signed-off-by: Ganesh Goudar Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c @@ -156,7 +156,7 @@ int cudbg_collect_cim_la(struct cudbg_in if (is_t6(padap->params.chip)) { size = padap->params.cim_la_size / 10 + 1; - size *= 11 * sizeof(u32); + size *= 10 * sizeof(u32); } else { size = padap->params.cim_la_size / 8; size *= 8 * sizeof(u32); --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c @@ -97,7 +97,7 @@ static u32 cxgb4_get_entity_length(struc case CUDBG_CIM_LA: if (is_t6(adap->params.chip)) { len = adap->params.cim_la_size / 10 + 1; - len *= 11 * sizeof(u32); + len *= 10 * sizeof(u32); } else { len = adap->params.cim_la_size / 8; len *= 8 * sizeof(u32);