linux-stable/drivers/usb
Jiasheng Jiang 0b8a070a7c usb: storage: Add check for kcalloc
[ Upstream commit c35ca10f53 ]

As kcalloc may return NULL pointer, the return value should
be checked and return error if fails as same as the ones in
alauda_read_map.

Fixes: e80b0fade0 ("[PATCH] USB Storage: add alauda support")
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20221208110058.12983-1-jiasheng@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-07 12:07:26 +01:00
..
atm USB: atm: ueagle-atm: add missing endpoint check 2019-12-21 10:41:53 +01:00
c67x00 USB: c67x00: fix use after free in c67x00_giveback_urb 2020-07-22 09:10:51 +02:00
chipidea usb: chipidea: fix deadlock in ci_otg_del_timer 2022-11-25 17:35:41 +01:00
class USB: cdc-acm: Add Icom PMR F3400 support (0c26:0020) 2022-09-15 12:39:45 +02:00
common usb: otg-fsm: Fix hrtimer list corruption 2021-08-15 13:01:03 +02:00
core usb: add NO_LPM quirk for Realforce 87U Keyboard 2022-11-25 17:35:41 +01:00
dwc2 usb: dwc2: gadget: don't reset gadget's driver->bus 2022-06-14 16:52:40 +02:00
dwc3 usb: dwc3: fix PHY disable sequence 2022-09-15 12:39:46 +02:00
early
gadget usb: fotg210-udc: Fix ages old endianness issues 2023-01-07 12:07:25 +01:00
host xhci: Remove device endpoints from bandwidth list when freeing the device 2022-11-03 23:49:16 +09:00
image USB: microtek: fix info-leak at probe 2019-10-17 13:42:38 -07:00
isp1760
misc usb: idmouse: fix an uninit-value in idmouse_open 2022-10-26 13:15:48 +02:00
mon usb: mon: make mmapped memory read only 2022-10-26 13:15:34 +02:00
musb usb: musb: Fix musb_gadget.c rxstate overflow bug 2022-10-26 13:15:48 +02:00
phy usb: phy: tahvo: add IRQ check 2021-09-22 11:43:01 +02:00
renesas_usbhs usb: renesas_usbhs: Fix superfluous irqs happen after usb_pkt_pop() 2021-07-28 09:14:28 +02:00
serial USB: serial: cp210x: add Kamstrup RF sniffer PIDs 2023-01-07 12:07:11 +01:00
storage usb: storage: Add check for kcalloc 2023-01-07 12:07:26 +01:00
usbip usb: usbip: add missing device lock on tweak configuration cmd 2022-06-14 16:52:37 +02:00
wusbcore
Kconfig Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-17 10:05:38 +02:00
Makefile
README
usb-skeleton.c USB: usb-skeleton: fix NULL-deref on disconnect 2019-10-17 13:42:29 -07:00

README

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.