vlan/macvlan: fix NULL pointer dereferences in ethtool handlers
authorPatrick McHardy <kaber@trash.net>
Fri, 17 Apr 2009 22:59:23 +0000 (15:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Apr 2009 22:59:23 +0000 (15:59 -0700)
commit7816a0a862d851d0b05710e7d94bfe390f3180e2
tree0b4f9099df21b1f7295637e8c28aa72721150b7d
parent75a241f959a65ec9bde237d1af1a34ef794f0c9c
vlan/macvlan: fix NULL pointer dereferences in ethtool handlers

Check whether the underlying device provides a set of ethtool ops before
checking for individual handlers to avoid NULL pointer dereferences.

Reported-by: Art van Breemen <ard@telegraafnet.nl>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
net/8021q/vlan_dev.c