]> asedeno.scripts.mit.edu Git - linux.git/commit
pppoe: drop pppoe device in pppoe_unbind_sock_work
authorFelix Fietkau <nbd@openwrt.org>
Sat, 9 May 2015 21:08:38 +0000 (23:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2015 16:58:22 +0000 (12:58 -0400)
commit665a6cd809f43eec2b51413816a4178a3390a870
tree91e8c4725d2067ac7dfc78003433fd0d0f08fbcd
parent268be0f7a7d9b3644bcb99568efba13cb208b627
pppoe: drop pppoe device in pppoe_unbind_sock_work

After receiving a PADT and the socket is closed, user space will no
longer drop the reference to the pppoe device.
This leads to errors like this:

[  488.570000] unregister_netdevice: waiting for eth0.2 to become free. Usage count = 2

Fixes: 287f3a943fe ("pppoe: Use workqueue to die properly when a PADT is received")
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pppoe.c