aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2005-08-23 13:50:09 -0400
committerDavid S. Miller <davem@davemloft.net>2005-08-23 13:50:09 -0400
commitdc16aaf29d64b8c5e0b88f49a4d541edf5b61e42 (patch)
tree0f1dcf6e5f9f57989d0aca1a565fa56701ed7556
parentd5d283751ef3c05b6766501a46800cbee84959d6 (diff)
[ROSE]: Fix missing unlocks in rose_route_frame()
Noticed by Coverity checker. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/rose/rose_route.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c
index ff73ebb912b8..46b23217a353 100644
--- a/net/rose/rose_route.c
+++ b/net/rose/rose_route.c
@@ -994,8 +994,10 @@ int rose_route_frame(struct sk_buff *skb, ax25_cb *ax25)
994 * 1. The frame isn't for us, 994 * 1. The frame isn't for us,
995 * 2. It isn't "owned" by any existing route. 995 * 2. It isn't "owned" by any existing route.
996 */ 996 */
997 if (frametype != ROSE_CALL_REQUEST) /* XXX */ 997 if (frametype != ROSE_CALL_REQUEST) { /* XXX */
998 return 0; 998 ret = 0;
999 goto out;
1000 }
999 1001
1000 len = (((skb->data[3] >> 4) & 0x0F) + 1) / 2; 1002 len = (((skb->data[3] >> 4) & 0x0F) + 1) / 2;
1001 len += (((skb->data[3] >> 0) & 0x0F) + 1) / 2; 1003 len += (((skb->data[3] >> 0) & 0x0F) + 1) / 2;