From: David S. Miller Date: Tue, 23 Aug 2005 17:50:09 +0000 (-0700) Subject: [ROSE]: Fix missing unlocks in rose_route_frame() X-Git-Tag: v2.6.13-rc7~55^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dc16aaf29d64b8c5e0b88f49a4d541edf5b61e42;p=linux-2.6-omap-h63xx.git [ROSE]: Fix missing unlocks in rose_route_frame() Noticed by Coverity checker. Signed-off-by: David S. Miller --- diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index ff73ebb912b..46b23217a35 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) * 1. The frame isn't for us, * 2. It isn't "owned" by any existing route. */ - if (frametype != ROSE_CALL_REQUEST) /* XXX */ - return 0; + if (frametype != ROSE_CALL_REQUEST) { /* XXX */ + ret = 0; + goto out; + } len = (((skb->data[3] >> 4) & 0x0F) + 1) / 2; len += (((skb->data[3] >> 0) & 0x0F) + 1) / 2;