ixgbevf: fix null pointer dereference due to filter being set for VLAN 0
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 2 Aug 2010 14:59:04 +0000 (14:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Aug 2010 04:20:21 +0000 (21:20 -0700)
commit3bfacf96abc747e3a4bafa7550deb0372d7d0e20
tree741574786070528b078faecca6934e07150dd0b1
parent8e86acd7d5968e08b3e1604e685a8c45f6fd7f40
ixgbevf: fix null pointer dereference due to filter being set for VLAN 0

This change corrects an issue that resulted in a null pointer dereference
for the addition of VLAN 0 without any VLANs being registered.  Also this
code removes some unnecessary checks for defines and the unnecessary setting
of VLAN flags since that is now handled within the kernel via the
vlan_features.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbevf/ixgbevf_main.c