Commit d0dc914f authored by David S. Miller's avatar David S. Miller

drivers/net/pppoe.c: Use sock_owned_by_user.

parent 55abcf9f
...@@ -403,7 +403,7 @@ static int pppoe_rcv(struct sk_buff *skb, ...@@ -403,7 +403,7 @@ static int pppoe_rcv(struct sk_buff *skb,
bh_lock_sock(sk); bh_lock_sock(sk);
/* Socket state is unknown, must put skb into backlog. */ /* Socket state is unknown, must put skb into backlog. */
if (sk->lock.users != 0) { if (sock_owned_by_user(sk) != 0) {
sk_add_backlog(sk, skb); sk_add_backlog(sk, skb);
ret = NET_RX_SUCCESS; ret = NET_RX_SUCCESS;
} else { } else {
...@@ -444,7 +444,7 @@ static int pppoe_disc_rcv(struct sk_buff *skb, ...@@ -444,7 +444,7 @@ static int pppoe_disc_rcv(struct sk_buff *skb,
* one socket family type, we cannot (easily) distinguish * one socket family type, we cannot (easily) distinguish
* what kind of SKB it is during backlog rcv. * what kind of SKB it is during backlog rcv.
*/ */
if (sk->lock.users == 0) { if (sock_owned_by_user(sk) == 0) {
sk->state = PPPOX_ZOMBIE; sk->state = PPPOX_ZOMBIE;
pppox_unbind_sock(sk); pppox_unbind_sock(sk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment