rpmsg: glink: Fix missing mutex_init() in qcom_glink_alloc_channel()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 2 Jan 2018 11:47:03 +0000 (11:47 +0000)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 2 Jan 2018 17:23:20 +0000 (09:23 -0800)
commitfb416f69900773d5a6030c909114099f92d07ab9
treebab93012b9e951c11e82cb999945d8c04066cfb3
parent178f3f75bb4ef7a29bf5c175eb33794ac9ae9bce
rpmsg: glink: Fix missing mutex_init() in qcom_glink_alloc_channel()

qcom_glink_alloc_channel() allocates the mutex but not initialize it.
Use mutex_init() on it to initialize it correctly.

This is detected by Coccinelle semantic patch.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c