Skip to content

Commit

Permalink
drivers/clk/clk: check return value of clk_pm_runtime_get()
Browse files Browse the repository at this point in the history
clk_pm_runtime_get() could fail. Check the return status.

Signed-off-by: Li Zhong <floridsleeves@gmail.com>
  • Loading branch information
FloridSleeves authored and intel-lab-lkp committed Aug 28, 2022
1 parent 434874f commit 26ebbe4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/clk/clk.c
Expand Up @@ -3008,8 +3008,11 @@ static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,
int level)
{
struct clk_core *child;

clk_pm_runtime_get(c);
int ret;

ret = clk_pm_runtime_get(c);
if (ret)
return;
clk_summary_show_one(s, c, level);
clk_pm_runtime_put(c);

Expand Down

0 comments on commit 26ebbe4

Please sign in to comment.