MLK-22506: VPU Decoder: fix mutex may not unlock if v4l2_open fail
authorming_qian <ming.qian@nxp.com>
Tue, 27 Aug 2019 01:46:39 +0000 (09:46 +0800)
committerming_qian <ming.qian@nxp.com>
Tue, 27 Aug 2019 02:32:08 +0000 (10:32 +0800)
commit1905a2d7d2a98396ea24f6b9d39892d205047ce8
tree389add9d3765d44bf1fe7c28e41d2cbb3ec74c71
parent2337b362758188b5badb7db59aeca33762027ad5
MLK-22506: VPU Decoder: fix mutex may not unlock if v4l2_open fail

there is an bug in v4l2_open,
that the dev_mutex may be not unlock in some flow,
it'll cause dead lock.

Signed-off-by: ming_qian <ming.qian@nxp.com>
Reviewed-by: Shijie Qin <shijie.qin@nxp.com>
drivers/mxc/vpu_malone/vpu_b0.c