android_kernel_sony_sdm845/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andrzej Pietrasiewicz d585589e5f usb: gadget: Zero ffs_io_data
[ Upstream commit 508595515f4bcfe36246e4a565cf280937aeaade ]

In some cases the "Allocate & copy" block in ffs_epfile_io() is not
executed. Consequently, in such a case ffs_alloc_buffer() is never called
and struct ffs_io_data is not initialized properly. This in turn leads to
problems when ffs_free_buffer() is called at the end of ffs_epfile_io().

This patch uses kzalloc() instead of kmalloc() in the aio case and memset()
in non-aio case to properly initialize struct ffs_io_data.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-04 09:33:38 +02:00
..
atm usb: atm: usbatm: don't print on ENOMEM 2016-08-30 19:17:36 +02:00
c67x00
chipidea usb: chipidea: udc: workaround for endpoint conflict issue 2019-07-10 09:55:28 +02:00
class usb: cdc-acm: send ZLP for Telit 3G Intel based modems 2019-01-16 22:12:31 +01:00
common usb: common: Consider only available nodes for dr_mode 2019-04-03 06:24:19 +02:00
core usb: core: hub: Disable hub-initiated U1/U2 2019-08-04 09:33:36 +02:00
dwc2 usb: dwc2: Fix DMA cache alignment issues 2019-06-22 08:17:20 +02:00
dwc3 usb: dwc3: Fix default lpm_nyet_threshold value 2019-05-10 17:52:10 +02:00
early treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
gadget usb: gadget: Zero ffs_io_data 2019-08-04 09:33:38 +02:00
host usb: xhci: avoid null pointer deref when bos field is NULL 2019-06-11 12:22:36 +02:00
image usb: microtek: Use "foo *bar" instead of "foo * bar". 2016-06-07 22:18:39 -07:00
isp1760
misc USB: rio500: fix memory leak in close after disconnect 2019-06-11 12:22:39 +02:00
mon usb: usbmon: Read text within supplied buffer size 2018-03-18 11:18:56 +01:00
musb usb: gadget: musb: fix short isoc packets with inventra dma 2019-02-12 19:45:01 +01:00
phy usb: phy: fix link errors 2019-03-13 14:04:59 -07:00
renesas_usbhs usb: renesas_usbhs: add a workaround for a race condition of workqueue 2019-07-21 09:06:01 +02:00
serial USB: serial: option: add support for GosunCn ME3630 RNDIS mode 2019-07-21 09:06:00 +02:00
storage USB: usb-storage: Add new ID to ums-realtek 2019-06-22 08:17:21 +02:00
usbip usbip: usbip_host: fix stub_dev lock context imbalance regression 2019-06-11 12:22:37 +02:00
wusbcore usb: wusbcore: security: cast sizeof to int for comparison 2018-10-03 17:01:45 -07:00
Kconfig usb: Move USB_UHCI_BIG_ENDIAN_* out of USB_SUPPORT 2018-02-22 15:43:51 +01:00
Makefile
README
usb-skeleton.c usb: usb-skeleton: don't print on ENOMEM 2016-08-30 19:17:39 +02:00

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.