From: 黄涛 Date: Fri, 1 Mar 2013 02:21:49 +0000 (+0800) Subject: rk: dvfs: fix wrong mutex_unlock on dvfs_get_vd_regulator_volt_list X-Git-Tag: firefly_0821_release~7495 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0a224d6a070934e9405addd47ee3dfe3b0e5da77;p=firefly-linux-kernel-4.4.55.git rk: dvfs: fix wrong mutex_unlock on dvfs_get_vd_regulator_volt_list --- diff --git a/arch/arm/plat-rk/dvfs.c b/arch/arm/plat-rk/dvfs.c index 1b991997c151..4f82c153d4c3 100755 --- a/arch/arm/plat-rk/dvfs.c +++ b/arch/arm/plat-rk/dvfs.c @@ -106,7 +106,7 @@ static void dvfs_get_vd_regulator_volt_list(struct vd_node *vd) if(selector>VD_VOL_LIST_CNT) selector=VD_VOL_LIST_CNT; - mutex_unlock(&mutex); + mutex_lock(&mutex); for (i = 0; iregulator,i); if(sel_volt<=0)