Thread (4 messages) flat view 4 messages, 4 authors, 2011-03-18

Re: [PATCH] ethtool: __ethtool_set_sg: check for function pointer before using it

From: David Miller <davem@davemloft.net>
Date: 2011-03-18 22:15:21

From: Ben Hutchings <redacted>
Date: Thu, 17 Mar 2011 16:52:13 +0000
On Thu, 2011-03-17 at 17:37 +0100, Roger Luethi wrote:
quoted
__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 <redacted>
Reviewed-by: Ben Hutchings <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help