Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2bcd3325 authored by Deepak Katragadda's avatar Deepak Katragadda Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: clk-regmap: Add additional check for devm_clk_register_regmap



Currently, a clock driver can call the devm_clk_register_regmap
function without the device and regmap pointers populated. This
will lead to a NULL pointer dereference in the clock framework.
Treat this more gracefully and return an error to the client
instead.

Change-Id: I2927e7c0fb19046582dd9bf0ae7e77b6c015a0cf
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent f424e01e
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