MLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq
authorBai Ping <ping.bai@nxp.com>
Mon, 8 Jan 2018 08:06:55 +0000 (16:06 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:53:35 +0000 (14:53 -0500)
commit4901e091e1f226d244e4327f38358ec0efca3f90
tree3bbf5d416a0e63c70c1edceba912f2098d52bd28
parent9f831daa9d53f1540a1662b0e4faf931f1cadc48
MLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq

A 'return' statement is missed before, So the mutex will be unlocked
twice, in some corner case, one core will unlock the mutex that locked
by anohter core wrongly. Then lead to concurrent access to the DVFS
at the same time.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
drivers/soc/imx/busfreq-imx8mq.c