From: Michal Schmidt Date: Fri, 20 Dec 2013 12:16:57 +0000 (+0100) Subject: vmxnet3: use initialized skb pointer to set hash X-Git-Tag: MMI-PSA29.97-13-9~12877^2~377 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c15a154a0f8069830772bacf70de8184065ee93;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git vmxnet3: use initialized skb pointer to set hash The recent conversion to skb_set_hash() was incorrect. 'skb' is uninitialized at this point. Fixes: 0b6807034791 ('net: vmxnet3 calls skb_set_hash') Signed-off-by: Michal Schmidt Acked-by: Tom Herbert Signed-off-by: David S. Miller --- diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index c0eab72cc79f..3be786faaaec 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -1235,7 +1235,8 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq, #ifdef VMXNET3_RSS if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE && (adapter->netdev->features & NETIF_F_RXHASH)) - skb_set_hash(skb, le32_to_cpu(rcd->rssHash), + skb_set_hash(ctx->skb, + le32_to_cpu(rcd->rssHash), PKT_HASH_TYPE_L3); #endif skb_put(ctx->skb, rcd->len);