ppp: don't set sk_state to PPPOX_ZOMBIE in pppoe_disc_rcv()
authorGuillaume Nault <g.nault@alphalink.fr>
Thu, 19 Nov 2015 11:52:56 +0000 (12:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 16:31:26 +0000 (11:31 -0500)
commit8734e485fed5fc5ce8b03aebfc2681e2de662838
treebab38e8b575e896d17bb85de9889eeaf2dd3bac6
parentbdc17fad6f8ea2dc8b260449cca4b4715bd2fb8b
ppp: don't set sk_state to PPPOX_ZOMBIE in pppoe_disc_rcv()

Since 287f3a943fef ("pppoe: Use workqueue to die properly when a PADT
is received"), pppoe_disc_rcv() disconnects the socket by scheduling
pppoe_unbind_sock_work(). This is enough to stop socket transmission
and makes the PPPOX_ZOMBIE state uncessary.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pppoe.c