re: Staging: hv: netvsc: Get rid of the usage of the ext field in struct hv_device

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

 



Hello K. Y. Srinivasan,

This is a semi-automatic email about new static checker warnings.

Tue Sep 13 10:59:49 2011 -0700
2ddd5e5fb342: "Staging: hv: netvsc: Get rid of the usage of the ext field in struct hv_device"

Leads to the following Smatch complaint:
drivers/staging/hv/rndis_filter.c +373 rndis_filter_receive()
	 warn: variable dereferenced before check 'net_dev' (see line 371)

drivers/staging/hv/rndis_filter.c
   370	
   371		ndev = net_dev->ndev;
                       ^^^^^^^^^^^^^
new dereference.

   372	
   373		if (!net_dev)
                    ^^^^^^^^
check.

   374			return -EINVAL;
   375

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux