Received: by 10.223.164.202 with SMTP id h10csp209898wrb; Mon, 13 Nov 2017 05:19:16 -0800 (PST) X-Google-Smtp-Source: AGs4zMYwKmxrtqzezvY3i4GFLPywA7JMx+I8PvvXSoKIvW6JYJDkTS+otkV4dbV0Bw6DylntUQTc X-Received: by 10.99.95.203 with SMTP id t194mr8628322pgb.161.1510579156055; Mon, 13 Nov 2017 05:19:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579156; cv=none; d=google.com; s=arc-20160816; b=oKQTdheZD+wona3UN2B5BakGYIwHb8OAF6abdw2nhI9j68DwwrmVuJBkhWnmDdmrjn 4sT1NVAAyDaD7YPWFN/U2HFh2Ins25R1kbngSCNRItTOUkt223HK8aMn6cMZO9/sD5hk GmPGTonMJcA8Su1O6jGkqaJ9EFbSvmqJ9GnKNoIjDHbHfflFNT5wWVIz3nnx3GJ3bZsC NMZCUf02ZtJicnx5OlBN4NzkBcTUUci4CCCt04qUGlUES1AhXfUrTbI+QUUXWnvubSnK /zZqNJLoh/0v/Z+KH6oI3E1YOn0F9fryYgEXvvTw8ufYPf5GkFQ0xYof+gGqC5UP+P1h veow== 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=MVLJXmz3S625DRtjHPk8HIiM7OFQXfQaJiqTBxrUQ48=; b=HgpIeuiS8W9LYIhWE/lamt9GOjv3GS0tnEqSlQDTs3KTkmtPMcobk/3/l3nKw6rBWY g0I1Zezh2lX+rculOgA2JlrJQbDiANTDzKojmV96NlnIxuLffLXYAy+FmGMm716VrrHe gAEwL+iUhL/FT/FpYvTjDpA4rXtoIrI9dRQOFlvLlnSj06XAnyHG03SFjq+PwuNOW+2a 1EFVZOjVkSQjzVclE5kXZO2sjaNaXEY9t6aQSkaNDt5C76nXYCe3F2vKCAauOImIVuN1 XTrkdFuqCS/na/AWF3/la1A6+7erkS71TfI365ZDvEczBF73dl/5nKlR0C8mEDyt7MA7 HXXA== 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 r9si3561569pgp.521.2017.11.13.05.19.03; Mon, 13 Nov 2017 05:19:16 -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 S1754845AbdKMNCV (ORCPT + 95 others); Mon, 13 Nov 2017 08:02:21 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50936 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754815AbdKMNCT (ORCPT ); Mon, 13 Nov 2017 08:02:19 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0A2A2AAE; Mon, 13 Nov 2017 13:02:17 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jaedon Shin , Florian Fainelli , Kevin Cernekee , linux-mips@linux-mips.org, James Hogan Subject: [PATCH 4.9 73/87] MIPS: BMIPS: Fix missing cbr address Date: Mon, 13 Nov 2017 13:56:30 +0100 Message-Id: <20171113125621.837315831@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jaedon Shin commit ea4b3afe1eac8f88bb453798a084fba47a1f155a upstream. Fix NULL pointer access in BMIPS3300 RAC flush. Fixes: 738a3f79027b ("MIPS: BMIPS: Add early CPU initialization code") Signed-off-by: Jaedon Shin Reviewed-by: Florian Fainelli Cc: Kevin Cernekee Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/16423/ Signed-off-by: James Hogan Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/smp-bmips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/mips/kernel/smp-bmips.c +++ b/arch/mips/kernel/smp-bmips.c @@ -587,11 +587,11 @@ void __init bmips_cpu_setup(void) /* Flush and enable RAC */ cfg = __raw_readl(cbr + BMIPS_RAC_CONFIG); - __raw_writel(cfg | 0x100, BMIPS_RAC_CONFIG); + __raw_writel(cfg | 0x100, cbr + BMIPS_RAC_CONFIG); __raw_readl(cbr + BMIPS_RAC_CONFIG); cfg = __raw_readl(cbr + BMIPS_RAC_CONFIG); - __raw_writel(cfg | 0xf, BMIPS_RAC_CONFIG); + __raw_writel(cfg | 0xf, cbr + BMIPS_RAC_CONFIG); __raw_readl(cbr + BMIPS_RAC_CONFIG); cfg = __raw_readl(cbr + BMIPS_RAC_ADDRESS_RANGE); From 1583956662792196648@xxx Mon Nov 13 13:13:07 +0000 2017 X-GM-THRID: 1583956662792196648 X-Gmail-Labels: Inbox,Category Promotions,HistoricalUnread