You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PCI: brcmstb: Fix error path upon call of regulator_bulk_get()
If regulator_bulk_get() returns an error, no regulators are created and we
need to set their number to zero. If we do not do this and the PCIe
link-up fails, regulator_bulk_free() will be invoked and effect a panic.
Also print out the error value, as we cannot return an error upwards as
Linux will WARN on an error from add_bus().
Fixes: 9e6be01 ("PCI: brcmstb: Enable child bus device regulators from DT")
Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
0 commit comments