diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-11-07 16:22:08 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-07 16:22:08 +0000 |
commit | ad133b57a94165e1289ac63b38139047a1450dbb (patch) | |
tree | b59d5e2f60aface2db357eef2bd87d5d448c26a3 /target/linux/generic/patches-4.0/100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch | |
parent | 86a46a817ba7cfab4963818f9c97508f1f835762 (diff) | |
download | master-31e0f0ae-ad133b57a94165e1289ac63b38139047a1450dbb.tar.gz master-31e0f0ae-ad133b57a94165e1289ac63b38139047a1450dbb.tar.bz2 master-31e0f0ae-ad133b57a94165e1289ac63b38139047a1450dbb.zip |
kernel: remove linux 4.0 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 47412
Diffstat (limited to 'target/linux/generic/patches-4.0/100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch')
-rw-r--r-- | target/linux/generic/patches-4.0/100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/generic/patches-4.0/100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch b/target/linux/generic/patches-4.0/100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch deleted file mode 100644 index c461b3e10c..0000000000 --- a/target/linux/generic/patches-4.0/100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch +++ /dev/null @@ -1,27 +0,0 @@ -From: Felix Fietkau <nbd@openwrt.org> -Date: Sat, 9 May 2015 23:03:47 +0200 -Subject: [PATCH] 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> ---- - ---- a/drivers/net/ppp/pppoe.c -+++ b/drivers/net/ppp/pppoe.c -@@ -462,6 +462,10 @@ static void pppoe_unbind_sock_work(struc - struct sock *sk = sk_pppox(po); - - lock_sock(sk); -+ if (po->pppoe_dev) { -+ dev_put(po->pppoe_dev); -+ po->pppoe_dev = NULL; -+ } - pppox_unbind_sock(sk); - release_sock(sk); - sock_put(sk); |