Skip to content
Unverified Commit dea6dd2b authored by Pan Bian's avatar Pan Bian Committed by Mark Brown
Browse files

regulator: s5m8767: Fix reference count leak



Call of_node_put() to drop references of regulators_np and reg_np before
returning error code.

Fixes: 9ae5cc75 ("regulator: s5m8767: Pass descriptor instead of GPIO number")
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210121032756.49501-1-bianpan2016@163.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d93d6f52
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