Roger Luethi 5e5069b41d ethtool: __ethtool_set_sg: check for function pointer before using it
__ethtool_set_sg does not check if dev->ethtool_ops->set_sg is defined
which can result in a NULL pointer dereference when ethtool is used to
change SG settings for drivers without SG support.

Signed-off-by: Roger Luethi <rl@hellgate.ch>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-03-18 15:13:10 -07:00
..
2011-02-17 15:44:00 -08:00
2010-07-12 12:57:55 -07:00
2010-07-12 12:57:55 -07:00
2011-01-20 16:59:34 -08:00
2010-10-25 14:18:27 -07:00
2010-11-28 18:24:14 -08:00
2010-07-12 12:57:55 -07:00
2010-10-25 14:18:27 -07:00
2010-09-23 14:33:39 -07:00