linux-stable/drivers/usb
Johan Hovold ea26131ff3 USB: visor: fix null-deref at probe
commit cac9b50b0d upstream.

Fix null-pointer dereference at probe should a (malicious) Treo device
lack the expected endpoints.

Specifically, the Treo port-setup hack was dereferencing the bulk-in and
interrupt-in urbs without first making sure they had been allocated by
core.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2016-03-12 14:25:39 +01:00
..
atm USB: atm: ueagle-atm: fix up some permissions on the sysfs files 2010-12-09 13:26:57 -08:00
c67x00 usb/c67x00 endianness annotations 2008-06-04 08:06:01 -07:00
class USB: cdc-wdm: fix buffer overflow 2013-06-10 11:43:05 +02:00
core USB: fix invalid memory access in hub_activate() 2016-01-29 22:12:55 +01:00
early USB: echi-dbgp: increase the controller wait time to come out of halt. 2012-10-07 23:38:13 +02:00
gadget usb: gadget: zero: fix bug in loopback autoresume handling 2012-02-13 11:28:50 -08:00
host xhci: fix off by one error in TRB DMA address boundary check 2015-12-06 00:49:04 +01:00
image USB: remove unneeded printks from microtek driver 2009-09-23 06:46:34 -07:00
misc USB: usbsevseg: fix max length 2012-02-03 09:26:57 -08:00
mon usbmon vs. tcpdump: fix dropped packet count 2011-11-07 12:32:19 -08:00
musb Revert "usb: musb: restore INDEX register in resume path" 2011-11-07 12:32:44 -08:00
otg USB: OMAP: ISP1301: Compile fix 2009-09-23 06:46:37 -07:00
serial USB: visor: fix null-deref at probe 2016-03-12 14:25:39 +01:00
storage usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops 2012-01-12 11:40:06 -08:00
wusbcore USB: wusb: don't use the stack to read security descriptor 2009-10-14 14:54:42 -07:00
Kconfig Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze 2009-09-24 09:01:44 -07:00
Makefile USB: ehci,dbgp,early_printk: split ehci debug driver from early_printk.c 2009-09-23 06:46:38 -07:00
README USB: fix directory references in usb/README 2007-11-28 13:58:34 -08:00
usb-skeleton.c USB: skeleton: fix coding style issues. 2009-09-23 06:46:40 -07: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 ("khubd").

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.