Skip to contentSkip to conversation

PM / devfreq: exynos4_bus: Fix missing mutex_unlock if opp_find_freq_floor fails

PATCH RESEND 함명주 2 participants 2 messages Apr 12, 2013

lore
Share & tools
lore

함명주

author
#0 lore raw
Quoted 11 lines · Axel Lin
Quoted 3 lines

We need to call mutex_unlock() in the error path.

All three patches applied to linux-pm.git/linux-next.

Exynos maintainers, if you have any objections, please holler.

Thanks,
Rafael

This patch was included in the last pull-request patchset though the path was updated. (its precedessor patch moved exynos drivers to /drivers/devfreq/exynos/* after adding Exynos common driver files)

Cheers,
MyungJoo.

Quoted 30 lines
Quoted 20 lines
---
 drivers/devfreq/exynos4_bus.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/devfreq/exynos4_bus.c +2 -1
index 1deee09..54b9615 100644
@@ -974,7 +974,8 @@ static int exynos4_busfreq_pm_notifier_event(struct notifier_block *this,
 			rcu_read_unlock();
 			dev_err(data->dev, "%s: unable to find a min freq\n",
 				__func__);
-			return PTR_ERR(opp);
+			err = PTR_ERR(opp);
+			goto unlock;
 		}
 		new_oppinfo.rate = opp_get_freq(opp);
 		new_oppinfo.volt = opp_get_voltage(opp);
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#1 lore raw
Quoted 9 lines · 함명주
Quoted 9 lines · Axel Lin
Quoted 3 lines

We need to call mutex_unlock() in the error path.

All three patches applied to linux-pm.git/linux-next.

Exynos maintainers, if you have any objections, please holler.

Quoted 7 lines
Quoted 2 lines

Thanks,
Rafael

This patch was included in the last pull-request patchset though the path was updated. (its precedessor patch moved exynos drivers to /drivers/devfreq/exynos/* after adding Exynos common driver files)

OK, so do you want me to drop it?

What about the remaining two?

Do you have any more devfreq patches for me to take into v3.10? If so, please send a pull request ASAP.

Thanks,
Rafael

Quoted 30 lines
Quoted 30 lines
Quoted 20 lines
---
 drivers/devfreq/exynos4_bus.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/devfreq/exynos4_bus.c +2 -1
index 1deee09..54b9615 100644
@@ -974,7 +974,8 @@ static int exynos4_busfreq_pm_notifier_event(struct notifier_block *this,
 			rcu_read_unlock();
 			dev_err(data->dev, "%s: unable to find a min freq\n",
 				__func__);
-			return PTR_ERR(opp);
+			err = PTR_ERR(opp);
+			goto unlock;
 		}
 		new_oppinfo.rate = opp_get_freq(opp);
 		new_oppinfo.volt = opp_get_voltage(opp);
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.