linux/drivers/usb/musb
Maulik Mankad 0abdc36f06 USB: musb: Fix null pointer dereference issue
This patch fixes the following NULL pointer dereference issue.

Pointer 'request' returned from call to function 'next_request'
at line 748 may be NULL and may be dereferenced at line 792.

============
Code Snippet
============

748:  request = next_request(musb_ep);
785: if (dma && (csr & MUSB_RXCSR_DMAENAB)) {
	csr &= ~(MUSB_RXCSR_AUTOCLEAR
			| MUSB_RXCSR_DMAENAB
			| MUSB_RXCSR_DMAMODE);
	musb_writew(epio, MUSB_RXCSR,
		MUSB_RXCSR_P_WZC_BITS | csr);

792:	 request->actual += musb_ep->dma->actual_len;
		

Signed-off-by: Maulik Mankad <x0082077@ti.com>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-23 11:34:19 -08:00
..
blackfin.c USB: musb: fix musb_platform_set_mode() definition 2009-12-11 11:55:24 -08:00
blackfin.h USB: musb: error out when anomaly 05000380 is applicable 2009-12-11 11:55:24 -08:00
cppi_dma.c USB: musb: fix for crash in DM646x USB when (CPPI)DMA is enabled 2009-12-23 11:34:17 -08:00
cppi_dma.h headers: smp_lock.h redux 2009-07-12 12:22:34 -07:00
davinci.c USB: musb: Populate the VBUS GPIO with the correct GPIO number 2009-12-23 11:34:13 -08:00
davinci.h USB: musb: partial DaVinci dm355 support 2009-03-24 16:20:36 -07:00
Kconfig USB: musb: Blackfin code needs NOP_USB_XCEIV too 2009-12-11 11:55:24 -08:00
Makefile USB: musb: add Blackfin Kconfig options and Makefile 2009-01-07 10:00:08 -08:00
musb_core.c USB: musb: do not work if no gadget driver is loaded 2009-12-23 11:34:17 -08:00
musb_core.h USB: MUSB: save hardware revision at init 2009-12-11 11:55:25 -08:00
musb_debug.h usb: musb: fix debug global variable name 2008-11-13 14:45:01 -08:00
musb_dma.h USB: musb: add work around for Blackfin anomaly 05000456 2009-12-11 11:55:24 -08:00
musb_gadget_ep0.c USB: musb: gadget_ep0: avoid SetupEnd interrupt 2009-12-23 11:34:18 -08:00
musb_gadget.c USB: musb: Fix null pointer dereference issue 2009-12-23 11:34:19 -08:00
musb_gadget.h USB: musb_gadget_ep0: stop abusing musb_gadget_set_halt() 2009-12-11 11:55:25 -08:00
musb_host.c USB: musb: musb_host: fix sparse warning 2009-12-11 11:55:28 -08:00
musb_host.h musb: add high bandwidth ISO support 2009-06-15 21:44:41 -07:00
musb_io.h USB: musb: Blackfin provides read/write I/O accessor in header files 2009-01-07 10:00:08 -08:00
musb_regs.h USB: musb: kill compile warning for Blackfin systems 2009-12-11 11:55:24 -08:00
musb_virthub.c musb: support disconnect after HNP roleswitch 2009-06-15 21:44:41 -07:00
musbhsdma.c USB: musb: fix printf warning in debug code 2009-12-11 11:55:25 -08:00
musbhsdma.h USB: musb: enable low level DMA operation for Blackfin 2009-01-07 10:00:07 -08:00
omap2430.c USB: musb: omap2430: fix sparse warning 2009-12-11 11:55:28 -08:00
omap2430.h omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
tusb6010_omap.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
tusb6010.c musb: proper hookup to transceiver drivers 2009-06-15 21:44:40 -07:00
tusb6010.h USB: musb: Remove my email address from few musb related drivers 2009-04-23 14:15:27 -07:00