mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 21:00:53 +07:00
[ROSE]: Fix missing unlocks in rose_route_frame()
Noticed by Coverity checker. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d5d283751e
commit
dc16aaf29d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user