mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
parent
178f3f75bb
commit
fb416f6990
1 changed files with 1 additions and 0 deletions
|
|
@ -221,6 +221,7 @@ static struct glink_channel *qcom_glink_alloc_channel(struct qcom_glink *glink,
|
|||
/* Setup glink internal glink_channel data */
|
||||
spin_lock_init(&channel->recv_lock);
|
||||
spin_lock_init(&channel->intent_lock);
|
||||
mutex_init(&channel->intent_req_lock);
|
||||
|
||||
channel->glink = glink;
|
||||
channel->name = kstrdup(name, GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue