> -----Original Message----- > From: Dan Carpenter [mailto:dan.carpenter@xxxxxxxxxx] > Sent: Thursday, October 06, 2011 2:18 AM > To: KY Srinivasan > Cc: devel@xxxxxxxxxxxxxxxxxxxx > Subject: re: Staging: hv: netvsc: Get rid of the usage of the ext field in struct > hv_device > > 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 Thanks Dan. I will have patch out soon. Regards, K. Y _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel