commit | 5e5069b41d5b82bcadc1dbf73f48476b428c102f | [log] [tgz] |
---|---|---|
author | Roger Luethi <rl@hellgate.ch> | Thu Mar 17 06:37:21 2011 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 18 15:13:10 2011 -0700 |
tree | dd7e2eb386328b0c94ef939d27540c10f11df8e2 | |
parent | 67c5c6cb8129c595f21e88254a3fc6b3b841ae8e [diff] |
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>