netxen: Fix vhdr_len in case of non vlan packets.
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Mon, 19 Sep 2011 08:49:51 +0000 (08:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2011 18:57:15 +0000 (14:57 -0400)
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>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c

index d6c6357de6aa3d674096edfd61346653b0b180ce..a8259cc19a63484e7eefc609514fffd6ac88f0bb 100644 (file)
@@ -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;