summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg/mtk_rpmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rpmsg/mtk_rpmsg.c')
-rw-r--r--drivers/rpmsg/mtk_rpmsg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rpmsg/mtk_rpmsg.c b/drivers/rpmsg/mtk_rpmsg.c
index 5b4404b8be4c..d1213c33da20 100644
--- a/drivers/rpmsg/mtk_rpmsg.c
+++ b/drivers/rpmsg/mtk_rpmsg.c
@@ -234,7 +234,9 @@ static void mtk_register_device_work_function(struct work_struct *register_work)
if (info->registered)
continue;
+ mutex_unlock(&subdev->channels_lock);
ret = mtk_rpmsg_register_device(subdev, &info->info);
+ mutex_lock(&subdev->channels_lock);
if (ret) {
dev_err(&pdev->dev, "Can't create rpmsg_device\n");
continue;