summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-04-07 14:19:07 -0700
committerFlorian Fainelli <f.fainelli@gmail.com>2019-05-20 09:27:50 -0700
commit490cad5a3ad6ef0bfd3168a5063140b982f3b22a (patch)
tree8b041f7eba812b51f84bd0a251e934e3c92e5058 /Makefile
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9 (diff)
downloadlinux-490cad5a3ad6ef0bfd3168a5063140b982f3b22a.tar.bz2
soc: brcmstb: Fix error path for unsupported CPUs
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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions