lkml.org 
[lkml]   [2019]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] soc: brcmstb: Fix error path for unsupported CPUs
Date
On Sun,  7 Apr 2019 14:19:07 -0700, Florian Fainelli <f.fainelli@gmail.com> wrote:
> In case setup_hifcpubiuctrl_regs() returns an error, because of e.g:
> an unsupported CPU type, just catch that error and return instead of
> blindly continuing with the initialization. This fixes a NULL pointer
> de-reference with the code continuing without having a proper array of
> registers to use.
>
> Fixes: 22f7a9116eba ("soc: brcmstb: Correct CPU_CREDIT_REG offset for Brahma-B53 CPUs")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---

Applied to soc/fixes, thanks!
--
Florian

\
 
 \ /
  Last update: 2019-04-17 20:56    [W:0.028 / U:0.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site