aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorAlberto Aguirre <a-aguirre@ti.com>2012-10-16 10:58:18 -0500
committerGerrit Code Review <gerrit2@git.omapzoom.org>2012-10-17 11:14:12 -0500
commit322cf48815d975bdd623e1477a6bf6ca2d03f694 (patch)
treea631160dcbe4c824375de5bddf40a8e07931fe1f /drivers/rpmsg
parent0991f456d5865e9bb8a6e6476bb2d775b31c87f2 (diff)
downloadkernel_samsung_espresso10-322cf48815d975bdd623e1477a6bf6ca2d03f694.zip
kernel_samsung_espresso10-322cf48815d975bdd623e1477a6bf6ca2d03f694.tar.gz
kernel_samsung_espresso10-322cf48815d975bdd623e1477a6bf6ca2d03f694.tar.bz2
[OMAPRPC] Fix locking mutex twice
Fix calling mutex_lock twice. Change-Id: I687c2785a6ffc00428bc3975a9bd637df36de8b0 Signed-off-by: Alberto Aguirre <a-aguirre@ti.com>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/omaprpc/omap_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rpmsg/omaprpc/omap_rpc.c b/drivers/rpmsg/omaprpc/omap_rpc.c
index 5f22838..ce634e2 100644
--- a/drivers/rpmsg/omaprpc/omap_rpc.c
+++ b/drivers/rpmsg/omaprpc/omap_rpc.c
@@ -111,7 +111,7 @@ static void omaprpc_fxn_del(struct omaprpc_instance_t *rpc)
kfree(pos->function);
kfree(pos);
}
- mutex_lock(&rpc->lock);
+ mutex_unlock(&rpc->lock);
}
}