pppoe: drop PPPOX_ZOMBIEs in pppoe_release
authorXiaodong Xu <stid.smth@gmail.com>
Sat, 22 Sep 2012 00:09:32 +0000 (00:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2012 19:49:31 +0000 (15:49 -0400)
commit2b018d57ff18e5405823e5cb59651a5b4d946d7b
treeeae59ac31ca8acf628b48cf2fae606f0e66343de
parent0b121fd28d071c766dddab743031ba6cfe9be68e
pppoe: drop PPPOX_ZOMBIEs in pppoe_release

When PPPOE is running over a virtual ethernet interface (e.g., a
bonding interface) and the user tries to delete the interface in case
the PPPOE state is ZOMBIE, the kernel will loop forever while
unregistering net_device for the reference count is not decreased to
zero which should have been done with dev_put().

Signed-off-by: Xiaodong Xu <stid.smth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pppoe.c