re: usb: chipidea: add support for roles

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

 



Hello Alexander Shishkin,

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

The patch 5f36e231e9db: "usb: chipidea: add support for roles" from 
May 11, 2012, leads to the following Smatch complaint:

drivers/usb/chipidea/udc.c:1650 udc_start()
	 warn: variable dereferenced before check 'udc' (see line 1647)

drivers/usb/chipidea/udc.c
  1646	{
  1647		struct device *dev = udc->dev;
                                     ^^^^^^^^
New dereference.

  1648		int retval = 0;
  1649	
  1650		if (!udc)
                    ^^^^
New check.

  1651			return -EINVAL;
  1652	

regards,
dan carpenter

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux