Re: [PATCH] soc: brcmstb: Fix error path for unsupported CPUs

2019-04-17 Thread Florian Fainelli
On Sun, 7 Apr 2019 14:19:07 -0700, Florian Fainelli 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

[PATCH] soc: brcmstb: Fix error path for unsupported CPUs

2019-04-07 Thread Florian Fainelli
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.