From: Rajesh Borundia Date: Mon, 19 Sep 2011 08:49:51 +0000 (+0000) Subject: netxen: Fix vhdr_len in case of non vlan packets. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7ffa289445edf73c7797eac1dfa645a9784015a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git netxen: Fix vhdr_len in case of non vlan packets. o Set vlan header length to zero. Signed-off-by: Rajesh Borundia Signed-off-by: David S. Miller --- 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;