Rafał Miłecki eea538204b kernel: fix refcnt leak in LED netdev trigger on interface rename
Renaming a netdev-trigger-tracked interface was resulting in an
unbalanced dev_hold().

Example:
> iw phy phy0 interface add foo type __ap
> echo netdev > trigger
> echo foo > device_name
> ip link set foo name bar
> 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

Above problem was caused by trigger checking a dev->name which obviously
changes after renaming an interface. It meant missing all further events
including the NETDEV_UNREGISTER which is required for calling dev_put().

This change fixes that by:
1) Comparing device struct *address* for notification-filtering purposes
2) Dropping unneeded NETDEV_CHANGENAME code (no behavior change)

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2019-03-06 06:08:15 +01:00
..
2019-01-08 13:13:16 +01:00
2019-01-31 15:35:22 +01:00
2018-05-24 17:24:30 +02:00
2018-10-19 10:00:48 +02:00
2018-12-13 13:28:41 +01:00
2018-11-05 16:00:47 +01:00
2019-01-15 13:58:36 +01:00
2019-02-25 10:23:44 +01:00
2019-01-15 13:58:36 +01:00
2019-02-15 10:53:17 +01:00
2018-11-06 11:49:55 +01:00
2019-02-25 10:23:44 +01:00
2019-02-25 10:23:44 +01:00
2019-02-25 17:34:25 +01:00
2019-01-31 15:35:22 +01:00
2019-02-25 17:34:25 +01:00
2018-01-09 10:26:16 +01:00
2019-02-15 10:53:17 +01:00
2019-02-13 10:30:04 +01:00
2018-10-10 14:46:25 +02:00
2019-01-13 10:12:56 +01:00
2018-10-09 14:36:00 +02:00
2018-10-19 10:00:48 +02:00
2018-04-19 14:38:57 +02:00
2019-02-15 10:53:17 +01:00
2018-11-14 16:27:43 +01:00
2018-05-24 16:03:58 +02:00