summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic
diff options
context:
space:
mode:
authorRajesh Borundia <rajesh.borundia@qlogic.com>2011-09-19 12:49:51 +0400
committerDavid S. Miller <davem@davemloft.net>2011-09-20 22:57:15 +0400
commita7ffa289445edf73c7797eac1dfa645a9784015a (patch)
tree3006fbafa45dc3d507bf886cda0631992c597707 /drivers/net/ethernet/qlogic
parentd24f22f3df9ac3f3af95e850df0b576d41bd3cfe (diff)
downloadlinux-a7ffa289445edf73c7797eac1dfa645a9784015a.tar.xz
netxen: Fix vhdr_len in case of non vlan packets.
o Set vlan header length to zero. Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r--drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
index d6c6357de6aa..a8259cc19a63 100644
--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
+++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
@@ -1620,7 +1620,7 @@ netxen_process_lro(struct netxen_adapter *adapter,
int index;
u16 lro_length, length, data_offset;
u32 seq_number;
- u8 vhdr_len;
+ u8 vhdr_len = 0;
if (unlikely(ring > adapter->max_rds_rings))
return NULL;