re: net: vmxnet3 calls skb_set_hash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux