[X.25]: Add missing sock_put in x25_receive_data
__x25_find_socket does a sock_hold. This adds a missing sock_put in x25_receive_data. Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
732ba35e75
commit
9d0f7d29f3
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb)
|
|||
sk_add_backlog(sk, skb);
|
||||
}
|
||||
bh_unlock_sock(sk);
|
||||
sock_put(sk);
|
||||
return queued;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue