kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: net: vmxnet3 calls skb_set_hash
@ 2013-12-20 20:02 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-12-20 20:02 UTC (permalink / raw)
  To: kernel-janitors

Hello Tom Herbert,

The patch 0b6807034791: "net: vmxnet3 calls skb_set_hash" from Dec
17, 2013, leads to the following static checker warning:

	drivers/net/vmxnet3/vmxnet3_drv.c:1238 vmxnet3_rq_rx_complete()
	error: potentially dereferencing uninitialized 'skb'.

drivers/net/vmxnet3/vmxnet3_drv.c
  1233                                           PCI_DMA_FROMDEVICE);
  1234  
  1235  #ifdef VMXNET3_RSS
  1236                          if (rcd->rssType != VMXNET3_RCD_RSS_TYPE_NONE &&
  1237                              (adapter->netdev->features & NETIF_F_RXHASH))
  1238                                  skb_set_hash(skb, le32_to_cpu(rcd->rssHash),
                                                     ^^^
Is it possible to hit this on the first loop iteration before "skb" has
been set?

  1239                                               PKT_HASH_TYPE_L3);
  1240  #endif
  1241                          skb_put(ctx->skb, rcd->len);
  1242  
  1243                          /* Immediate refill */

regards,
dan carpenter


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-20 20:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 20:02 net: vmxnet3 calls skb_set_hash Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).