From: Eric Dumazet Date: Mon, 26 Oct 2009 01:23:33 +0000 (+0000) Subject: net: sysfs: ethtool_ops can be NULL X-Git-Tag: v2.6.33-rc1~388^2~642 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac5e3af9996fb911d4fdff910a8ac3cb7fc63a94;p=pandora-kernel.git 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 Acked-by: Andy Gospodarek Signed-off-by: David S. Miller --- Reading git-diff-tree failed