uboot-mt623x/drivers
Vitaly Kuzmichev d5292c1647 USB-CDC: ethernet error path potential oops fix
Fix potential oops on rare error path.
The patch is based on commit e7b13ec9235b9fded90f826ceeb8c34548631351
(done by David Brownell <david-b@pacbell.net>) from linux-2.6.git.

Description of the issue taken from linux kernel bugzilla:
(https://bugzilla.kernel.org/show_bug.cgi?id=9594)

The potential error can be tracked down as follows:

(1) line 807: let the second conjunct on the "if" statment be false
    meaning "dev->status_ep" is null. This means the "if" evaluates
    to false.

follow thru the code until...

(2) line 808: usb_ep_disable(dev->status_ep) passes in a null argument,
    however "usb_ep_disable" cannot handle that:

(from include/linux/usb/gadget.h)
191 static inline int
192 usb_ep_disable (struct usb_ep *ep)
193 {
194         return ep->ops->disable (ep);
195 }

--

Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
2010-09-20 21:57:17 +02:00
..
bios_emulator ati_radeon: Support PCI virtual not eq bus mapping. 2010-04-08 15:30:47 +02:00
block ide: add mvsata_ide driver 2010-08-08 05:17:06 +05:30
dma powerpc/8xxx: Fix dma for 36bit addressing 2010-08-31 11:23:15 -05:00
fpga add block write function to spartan3 slave serial load 2010-03-24 11:08:43 -05:00
gpio ARMV7: S5P: rename from CONFIG_S5PC1XX to CONFIG_S5P 2010-08-26 17:33:23 +09:00
hwmon Misc ds1722 fixups 2009-09-04 21:54:52 +02:00
i2c i2c, omap24xx: set bus_initialized only after relocation. 2010-09-19 19:29:52 +02:00
input mpc5xxx: Remove all references to MGT5100 2010-03-21 22:44:42 +01:00
misc cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
mmc mmc: fix compiler warnings 2010-09-19 12:30:54 +02:00
mtd nand/davinci: make sure ECC calculation has really started 2010-09-13 14:43:05 -05:00
net Fix compile warnings for const correctness 2010-08-09 11:52:30 -07:00
pci powerpc/85xx & 86xx: Rework ft_fsl_pci_setup to not require aliases 2010-07-20 04:40:06 -05:00
pcmcia Misc ti_pci1410a fixups 2009-09-04 21:54:04 +02:00
power Prepare v2010.09-rc1 2010-09-10 00:16:19 +02:00
qe miiphy: constify device name 2010-08-09 11:52:29 -07:00
rtc AT91: add RTT and GPBR based RTC 2010-09-03 11:20:02 +02:00
serial ARMV7: S5P: separate the peripheral clocks 2010-08-30 14:44:16 +09:00
spi AT91/AVR32: atmel_spi.c: flush RDR before next SPI transaction 2010-09-03 11:22:25 +02:00
twserial drivers/twserial: Add protocol driver for "three wire serial" interface. 2009-03-30 09:38:36 +02:00
usb USB-CDC: ethernet error path potential oops fix 2010-09-20 21:57:17 +02:00
video video: add support for display controller in MB86R0x SoCs 2010-08-10 23:14:21 +02:00
watchdog Convert at91 watchdog driver to new SoC access 2010-04-03 15:24:27 -05:00