ledtrig-netdev: update base driver instead of patching it for every kernel
[openwrt/openwrt.git] / target / linux / generic / patches-3.18 / 101-pppoe-fix-disconnect-crash.patch
1 Fix crash with actions performed on the underlying interface (MAC address,
2 MTU or link state update). This triggers pppoe_flush_dev(), which cleans up
3 the device without announcing it in sk->sk_state.
4
5 Patch by Guillaume Nault (pulled from netdev@vger)
6
7 --- a/drivers/net/ppp/pppoe.c
8 +++ b/drivers/net/ppp/pppoe.c
9 @@ -313,7 +313,6 @@ static void pppoe_flush_dev(struct net_d
10 if (po->pppoe_dev == dev &&
11 sk->sk_state & (PPPOX_CONNECTED | PPPOX_BOUND | PPPOX_ZOMBIE)) {
12 pppox_unbind_sock(sk);
13 - sk->sk_state = PPPOX_ZOMBIE;
14 sk->sk_state_change(sk);
15 po->pppoe_dev = NULL;
16 dev_put(dev);