]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: prevent null pointer dereference with NTUPLE set but no set_rx_ntuple
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 8 Apr 2011 12:07:22 +0000 (12:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2011 20:20:49 +0000 (13:20 -0700)
commitaab57ec52bfdd6154a6b1968f35d47c0c19c5a18
treea3a3705f4ec33b0c8de803d82c8107a4b921b768
parentdfbf111d24e86a7331be3ee0cc52cd4818093c23
ethtool: prevent null pointer dereference with NTUPLE set but no set_rx_ntuple

This change is meant to prevent a possible null pointer dereference if
NETIF_F_NTUPLE is defined but the set_rx_ntuple function pointer is not.

The main motivation behind this patch is to eventually replace the ntuple
interfaces entirely with the network flow classifier interfaces.  This
allows the device drivers to maintain the ntuple check internally while
using the network flow classifier interface for setting up and displaying
rules.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c