]> git.baikalelectronics.ru Git - kernel.git/commit
clk: s2mps11: Fix a resource leak in error handling paths in the probe function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 12 Dec 2020 12:28:18 +0000 (13:28 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 19 Dec 2020 23:53:31 +0000 (15:53 -0800)
commit157de354a73449a7a6608a452bea648b11ce74f1
treef0bccbff9cecc82a144e2c96bada7f04fdc117f0
parentb6e0a812dc78af1d4825874f88e663286ae90438
clk: s2mps11: Fix a resource leak in error handling paths in the probe function

Some resource should be released in the error handling path of the probe
function, as already done in the remove function.

The remove function was fixed in commit e9ad85665b34 ("clk: s2mps11: Add
missing of_node_put and of_clk_del_provider")

Fixes: 8fb894ad9abc ("clk: s2mps11: Add support for s2mps11")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201212122818.86195-1-christophe.jaillet@wanadoo.fr
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-s2mps11.c