clk: tegra: dfll: add missing rcu_read_unlock() for error path
Subsystems (3)
PATCH 1/1 clk: tegra: dfll: add missing rcu_read_unlock() for error path
From: Vince Hsu <[email protected]>
The commit e770940218028c6a5927fda45f2ca9db5d9b35e0 ("clk: tegra: dfll:
Properly protect OPP list") added the rcu_read_{lock,unlock} but missed one in the error path. So add the missing one.
---
Hi,
I noticed the missed unlock because we had a similar fix as the commit e77094021 in ChromeOS[1].
[1] https://chromium-review.googlesource.com/#/c/223661/
drivers/clk/tegra/clk-dfll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/clk/tegra/clk-dfll.c +3 -1
@@ -685,8 +685,10 @@ static int find_lut_index_for_rate(struct tegra_dfll *td, unsigned long rate)rcu_read_lock (); opp =dev_pm_opp_find_freq_ceil (td->soc->dev, &rate); -if (IS_ERR (opp)) +if (IS_ERR (opp)) { +rcu_read_unlock ();return PTR_ERR (opp); + } uv =dev_pm_opp_get_voltage (opp);rcu_read_unlock ();
Signature · 1 line
2.1.4
Quoted 8 lines · Vince Hsu
From: Vince Hsu <[email protected]>
The commit
e770940218028c6a5927fda45f2ca9db5d9b35e0("clk: tegra: dfll:
Properly protect OPP list") added the rcu_read_{lock,unlock} but missed one in the error path. So add the missing one.Signed-off-by Vince Hsu <[email protected]>---
I think we'll just squash this into the original patch from Thierry.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 11 lines · Stephen Boyd
Quoted 8 lines · Vince Hsu
From: Vince Hsu <[email protected]>
The commit
e770940218028c6a5927fda45f2ca9db5d9b35e0("clk: tegra: dfll:
Properly protect OPP list") added the rcu_read_{lock,unlock} but missed one in the error path. So add the missing one.Signed-off-by Vince Hsu <[email protected]>---
I think we'll just squash this into the original patch from Thierry.
Sure. Thanks!
Vince