kernel: fix refcnt leak in LED netdev trigger on interface rename
authorRafał Miłecki <rafal@milecki.pl>
Tue, 5 Mar 2019 22:08:45 +0000 (23:08 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 5 Mar 2019 22:10:09 +0000 (23:10 +0100)
commit9e32e288f0de3fa8c7ae1d193aec608648430759
tree5a41141bca21dd6f43ef02adde1d35291316b42c
parent64bb88841fbc2d9a9dfee12775a18e5dc89ac16e
kernel: fix refcnt leak in LED netdev trigger on interface rename

This fixes a possible unbalanced dev_hold():
> iw dev bar del
[  237.355366] unregister_netdevice: waiting for bar to become free. Usage count = 1
[  247.435362] unregister_netdevice: waiting for bar to become free. Usage count = 1
[  257.545366] unregister_netdevice: waiting for bar to become free. Usage count = 1

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/generic/backport-4.14/401-v5.2-leds-trigger-netdev-fix-refcnt-leak-on-interface-ren.patch [new file with mode: 0644]
target/linux/generic/backport-4.19/400-v5.2-leds-trigger-netdev-fix-refcnt-leak-on-interface-ren.patch [new file with mode: 0644]