linux-kernel-test/drivers/usb/musb
Kevin Hilman 02582b92f6 MUSB: Add sanity check for maximum number of endpoints
There is no check if platform code passes in more endpoints (num_eps)
than the maximum number of enpoints (MUSB_C_NUM_EPS.)  The result is
that allocate_instance() happily writes past the end of 'struct musb'
corrupting memory.

This patch adds a BUG() if the platform code requests more than the max.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-17 14:40:58 -07:00
..
cppi_dma.c
cppi_dma.h
davinci.c
davinci.h
Kconfig USB: drivers/usb/musb/: disable it on SuperH 2008-09-23 13:58:09 -07:00
Makefile usb: musb: get rid of MUSB_LOGLEVEL and use parameter 2008-08-21 10:26:34 -07:00
musb_core.c MUSB: Add sanity check for maximum number of endpoints 2008-10-17 14:40:58 -07:00
musb_core.h usb: musb: get rid of procfs entry 2008-08-21 10:26:33 -07:00
musb_debug.h usb: musb: get rid of MUSB_LOGLEVEL and use parameter 2008-08-21 10:26:34 -07:00
musb_dma.h
musb_gadget_ep0.c MUSB: Fix index register corruption seen with g_ether and Windows host 2008-08-21 10:26:34 -07:00
musb_gadget.c
musb_gadget.h
musb_host.c
musb_host.h
musb_io.h
musb_regs.h
musb_virthub.c
musbhsdma.c
omap2430.c usb: musb: fix include path 2008-09-23 13:58:08 -07:00
omap2430.h usb: musb: fix include path 2008-09-23 13:58:08 -07:00
tusb6010_omap.c
tusb6010.c
tusb6010.h usb: musb: pass configuration specifics via pdata 2008-08-13 17:33:01 -07:00