pppoe: drop PPPOX_ZOMBIEs in pppoe_flush_dev
Subsystems (2)
PATCH 1/1 pppoe: drop PPPOX_ZOMBIEs in pppoe_flush_dev
otherwise we loop forever if a PPPoE socket was set to PPPOX_ZOMBIE state by a PADT message when the ethernet device is going down afterwards.
Signed-off-by Ulrich Weber <[email protected]>
--- drivers/net/pppoe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/pppoe.c +1 -1
@@ -317,7 +317,7 @@ static void pppoe_flush_dev(struct net_device *dev)lock_sock (sk);if (po->pppoe_dev == dev && - sk->sk_state & (PPPOX_CONNECTED |PPPOX_BOUND )) { + sk->sk_state & (PPPOX_CONNECTED |PPPOX_BOUND |PPPOX_ZOMBIE )) {pppox_unbind_sock (sk); sk->sk_state =PPPOX_ZOMBIE ; sk->sk_state_change (sk);
Signature · 1 line
1.7.1
From: Ulrich Weber <[email protected]>
Date: Mon, 4 Apr 2011 14:33:24 +0200
Quoted 5 lines
otherwise we loop forever if a PPPoE socket was set to
PPPOX_ZOMBIEstate by a PADT message when the ethernet device is going down afterwards.Signed-off-by Ulrich Weber <[email protected]>
Applied, thanks Ulrich.