• Florian Fainelli's avatar
    soc: brcmstb: Fix error path for unsupported CPUs · 490cad5a
    Florian Fainelli authored
    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: 22f7a911 ("soc: brcmstb: Correct CPU_CREDIT_REG offset for Brahma-B53 CPUs")
    Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    490cad5a
biuctrl.c 6.44 KB