From: Finley Xiao Date: Thu, 11 May 2017 10:06:12 +0000 (+0800) Subject: PM / devfreq: rockchip_dmc: Fix error handling X-Git-Tag: release-20171130_firefly~4^2~599 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=596289bbd287071fd9c39c6135da9cc716cb432f;p=firefly-linux-kernel-4.4.55.git PM / devfreq: rockchip_dmc: Fix error handling It never has the mutex_lock counterpart before goto. Change-Id: I937e79bc65433cb1c173fe0cb221e7d69586046c Signed-off-by: Finley Xiao --- diff --git a/drivers/devfreq/rockchip_dmc.c b/drivers/devfreq/rockchip_dmc.c index 00cb8eba65c3..4cf6a1999248 100644 --- a/drivers/devfreq/rockchip_dmc.c +++ b/drivers/devfreq/rockchip_dmc.c @@ -197,7 +197,7 @@ static int rockchip_dmcfreq_target(struct device *dev, unsigned long *freq, if (err) { dev_err(dev, "Cannot set voltage %lu uV\n", target_volt); - goto out; + return err; } }