pppoe: drop PPPOX_ZOMBIEs in pppoe_release
authorXiaodong Xu <stid.smth@gmail.com>
Sat, 22 Sep 2012 00:09:32 +0000 (00:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:47:03 +0000 (05:47 +0900)
commit0da0ab0257462b974ccdc7e603bf8a4c2976de44
treebedf949384fde47e44504c20fe0e820501897b00
parent5359d302651d6f3a1b9b70863e531b8b6815ba01
pppoe: drop PPPOX_ZOMBIEs in pppoe_release

[ Upstream commit 2b018d57ff18e5405823e5cb59651a5b4d946d7b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ppp/pppoe.c