re: usb: gadget: renesas_usbhs: add mod_host support

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

 



Hello Kuninori Morimoto,

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

The patch 034d7c13a79c: "usb: gadget: renesas_usbhs: add mod_host 
support" from Oct 10, 2011, leads to the following Smatch complaint:

drivers/usb/renesas_usbhs/mod_host.c +447 usbhsh_endpoint_free()
	 warn: variable dereferenced before check 'uep' (see line 444)

drivers/usb/renesas_usbhs/mod_host.c
   443		struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep);
   444		struct usbhsh_device *udev = usbhsh_uep_to_udev(uep);
                                             ^^^^^^^^^^^^^^^^^^^^^^^
dereference.

   445		struct usbhsh_pipe_info *info;
   446	
   447		if (!uep)
                   ^^^^^^
null check.

   448			return;
   449	

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