re: USB: usb-wwan: fix multiple memory leaks in error paths

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

 



Hello Johan Hovold,

The patch b8f0e82044c9: "USB: usb-wwan: fix multiple memory leaks in
error paths" from Oct 25, 2012, leads to the following warning:
drivers/usb/serial/usb_wwan.c:505 usb_wwan_port_probe()
	 error: port->bulk_out_endpointAddress is never equal to -1
		(wrong type 0 - 255).

drivers/usb/serial/usb_wwan.c
   504          for (i = 0; i < N_OUT_URB; i++) {
   505                  if (port->bulk_out_endpointAddress == -1)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Never true.

   506                          continue;
   507  

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