Eric Dumazet ac5e3af999 net: sysfs: ethtool_ops can be NULL
commit d519e17e2d01a0ee9abe083019532061b4438065
(net: export device speed and duplex via sysfs)
made the wrong assumption that netdev->ethtool_ops was always set.

This makes possible to crash kernel and let rtnl in locked state.

modprobe dummy
ip link set dummy0 up
(udev runs and crash)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-28 03:59:46 -07:00
..
2009-10-18 18:52:54 -07:00
2009-10-28 02:22:08 -07:00
2008-11-14 00:53:54 -08:00
2009-10-07 01:10:44 -07:00
2009-10-20 01:06:22 -07:00
2008-11-25 17:35:18 -08:00
2008-11-18 18:52:37 +11:00
2009-10-20 18:55:46 -07:00