summaryrefslogtreecommitdiffstats
path: root/net/caif/cfmuxl.c
diff options
context:
space:
mode:
authorSjur Braendeland <sjur.brandeland@stericsson.com>2010-05-21 02:16:11 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-23 23:57:43 -0700
commita9a8f1070d8733b37418b3a2d58df4e771b61f88 (patch)
tree7b87817388e3f8ff6d11c704b831c36cd2663277 /net/caif/cfmuxl.c
parentca6a09f25cde1d2d86f8e821cf69f4f650c30dbf (diff)
downloadop-kernel-dev-a9a8f1070d8733b37418b3a2d58df4e771b61f88.zip
op-kernel-dev-a9a8f1070d8733b37418b3a2d58df4e771b61f88.tar.gz
caif: Bugfix - missing spin_unlock
Splint found missing spin_unlock. Corrected this an some other trivial split warnings. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/cfmuxl.c')
-rw-r--r--net/caif/cfmuxl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/caif/cfmuxl.c b/net/caif/cfmuxl.c
index 7372f27..80c8d33 100644
--- a/net/caif/cfmuxl.c
+++ b/net/caif/cfmuxl.c
@@ -174,10 +174,11 @@ struct cflayer *cfmuxl_remove_uplayer(struct cflayer *layr, u8 id)
spin_lock(&muxl->receive_lock);
up = get_up(muxl, id);
if (up == NULL)
- return NULL;
+ goto out;
memset(muxl->up_cache, 0, sizeof(muxl->up_cache));
list_del(&up->node);
cfsrvl_put(up);
+out:
spin_unlock(&muxl->receive_lock);
return up;
}
OpenPOWER on IntegriCloud