commit | ac5e3af9996fb911d4fdff910a8ac3cb7fc63a94 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Mon Oct 26 01:23:33 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Oct 28 03:59:46 2009 -0700 |
tree | c6c56403289c8bff16884592dc76d276444e9f04 | |
parent | b75c6dbb45a49289b90f885c7fb6d9ac39a21688 [diff] |
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>