projects
/
linux-drm-fsl-dcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
initramfs: fix initramfs size calculation
[linux-drm-fsl-dcu.git]
/
net
/
caif
/
cfmuxl.c
diff --git
a/net/caif/cfmuxl.c
b/net/caif/cfmuxl.c
index 7372f27f1d328c511374bdb29f7a63751d9fa5bb..80c8d332b2586fb1a4a2ddacca97f20fba9047ae 100644
(file)
--- 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;
}