Skip to content

Commit

Permalink
[ROSE]: Fix missing unlocks in rose_route_frame()
Browse files Browse the repository at this point in the history
Noticed by Coverity checker.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Aug 23, 2005
1 parent d5d2837 commit dc16aaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/rose/rose_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc16aaf

Please sign in to comment.