Skip to content

Commit

Permalink
[X.25]: Add missing sock_put in x25_receive_data
Browse files Browse the repository at this point in the history
__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>
  • Loading branch information
Andrew Hendry authored and David S. Miller committed Jan 24, 2007
1 parent 732ba35 commit 9d0f7d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/x25/x25_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9d0f7d2

Please sign in to comment.