Skip to content
Commit f6c992ca authored by Navid Emamdoost's avatar Navid Emamdoost Committed by Stephen Boyd
Browse files

clk: bcm2835: add missing release if devm_clk_hw_register fails



In the implementation of bcm2835_register_pll(), the allocated pll is
leaked if devm_clk_hw_register() fails to register hw. Release pll if
devm_clk_hw_register() fails.

Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Link: https://lore.kernel.org/r/20200809231202.15811-1-navid.emamdoost@gmail.com


Fixes: 41691b88 ("clk: bcm2835: Add support for programming the audio domain clocks")
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 4ceb4b6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment