linux-stable/drivers/usb
Xu Yang 23d93eaa70 usb: chipidea: udc: check request status before setting device address
commit b24346a240 upstream.

The complete() function may be called even though request is not
completed. In this case, it's necessary to check request status so
as not to set device address wrongly.

Fixes: 10775eb17b ("usb: chipidea: udc: update gadget states according to ch9")
cc: <stable@vger.kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20220623030242.41796-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-02 16:18:09 +02:00
..
atm
c67x00
chipidea usb: chipidea: udc: check request status before setting device address 2022-07-02 16:18:09 +02:00
class usb: cdc-wdm: fix reading stuck on device close 2022-05-18 09:18:07 +02:00
common usb: ulpi: Call of_node_put correctly 2022-02-16 12:44:51 +01:00
core USB: hcd-pci: Fully suspend across freeze/thaw cycle 2022-06-14 16:53:59 +02:00
dwc2 usb: dwc2: Fix memory leak in dwc2_hcd_init 2022-06-25 11:46:44 +02:00
dwc3 usb: dwc3: omap: fix "unbalanced disables for smps10_out1" on omap5evm 2022-04-20 09:08:27 +02:00
early
gadget usb: gadget: u_ether: fix regression in setting fixed MAC address 2022-06-25 11:46:45 +02:00
host drivers: usb: host: Fix deadlock in oxu_bus_suspend() 2022-06-14 16:53:59 +02:00
image
isp1760
misc usb: misc: fix improper handling of refcount in uss720_probe() 2022-05-12 12:17:05 +02:00
mon
mtu3 usb: mtu3: fix USB 3.0 dual-role-switch from device to host 2022-05-12 12:17:04 +02:00
musb usb: musb: tusb6010: check return value after calling platform_get_resource() 2021-11-26 11:40:37 +01:00
phy usb: phy: tahvo: add IRQ check 2021-09-22 11:45:21 +02:00
renesas_usbhs usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop() 2021-07-28 11:12:19 +02:00
serial USB: serial: option: add Quectel RM500K module support 2022-07-02 16:18:08 +02:00
storage USB: storage: karma: fix rio_karma_init return 2022-06-14 16:53:56 +02:00
typec usb: typec: ucsi: Clear PPM capability data in ucsi_init() error path 2021-06-16 11:53:03 +02:00
usbip usb: usbip: add missing device lock on tweak configuration cmd 2022-06-14 16:53:55 +02:00
wusbcore
Kconfig Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-17 10:08:31 +02:00
Makefile
README
usb-skeleton.c

To understand all the Linux-USB framework, you'll use these resources:

    * This source code.  This is necessarily an evolving work, and
      includes kerneldoc that should help you get a current overview.
      ("make pdfdocs", and then look at "usb.pdf" for host side and
      "gadget.pdf" for peripheral side.)  Also, Documentation/usb has
      more information.

    * The USB 2.0 specification (from www.usb.org), with supplements
      such as those for USB OTG and the various device classes.
      The USB specification has a good overview chapter, and USB
      peripherals conform to the widely known "Chapter 9".

    * Chip specifications for USB controllers.  Examples include
      host controllers (on PCs, servers, and more); peripheral
      controllers (in devices with Linux firmware, like printers or
      cell phones); and hard-wired peripherals like Ethernet adapters.

    * Specifications for other protocols implemented by USB peripheral
      functions.  Some are vendor-specific; others are vendor-neutral
      but just standardized outside of the www.usb.org team.

Here is a list of what each subdirectory here is, and what is contained in
them.

core/		- This is for the core USB host code, including the
		  usbfs files and the hub class driver ("hub_wq").

host/		- This is for USB host controller drivers.  This
		  includes UHCI, OHCI, EHCI, and others that might
		  be used with more specialized "embedded" systems.

gadget/		- This is for USB peripheral controller drivers and
		  the various gadget drivers which talk to them.


Individual USB driver directories.  A new driver should be added to the
first subdirectory in the list below that it fits into.

image/		- This is for still image drivers, like scanners or
		  digital cameras.
../input/	- This is for any driver that uses the input subsystem,
		  like keyboard, mice, touchscreens, tablets, etc.
../media/	- This is for multimedia drivers, like video cameras,
		  radios, and any other drivers that talk to the v4l
		  subsystem.
../net/		- This is for network drivers.
serial/		- This is for USB to serial drivers.
storage/	- This is for USB mass-storage drivers.
class/		- This is for all USB device drivers that do not fit
		  into any of the above categories, and work for a range
		  of USB Class specified devices. 
misc/		- This is for all USB device drivers that do not fit
		  into any of the above categories.