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
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to