Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c15a154 authored by Michal Schmidt's avatar Michal Schmidt Committed by David S. Miller
Browse files

vmxnet3: use initialized skb pointer to set hash



The recent conversion to skb_set_hash() was incorrect. 'skb' is
uninitialized at this point.

Fixes: 0b680703 ('net: vmxnet3 calls skb_set_hash')
Signed-off-by: default avatarMichal Schmidt <mschmidt@redhat.com>
Acked-by: default avatarTom Herbert <therbert@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2e04ad42
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);