u-boot-brain/drivers
Troy Kisky 71fc5f91d2 usb: gadget: ether: return error from rx_submit if no request
This prevents a crash if tftpboot is given a bad filename.

rx_req will be released by eth_reset_config
which is called by eth_disconnect,
which is called using the .disconnect member of usb_gadget_driver by mv_pullup in mv_udc
which is called using the .pullup member of usb_gadget_ops by usb_gadget_disconnect
which is called by usb_eth_halt
which is called using the .halt member of eth_device by eth_halt
which is called by TftpHandler when TFTP_ERR_FILE_NOT_FOUND or TFTP_ERR_ACCESS_DENIED occurs

I trigger this with the following commands
setenv ipaddr 10.0.0.2 && setenv netmask 255.255.255.0 && setenv serverip 10.0.0.1
setenv usbnet_devaddr 00:11:22:33:44:55 && setenv usbnet_hostaddr 00:aa:bb:cc:dd:ee
setenv ethprime usb_ether && setenv ethact usb_ether && setenv ncip 10.0.0.1
tftpboot 10800000 10.0.0.1:missing_file

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
2013-10-20 23:42:39 +02:00
..
bios_emulator biosemu: include <asm/io.h> header 2013-04-02 16:23:35 -04:00
block Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
bootcount Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
crypto Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
dfu dfu: ram support 2013-09-24 17:51:35 +02:00
dma dma: apbh: Add special circular mode for LCD 2013-08-09 21:48:34 +02:00
fpga Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
gpio Merge branch 'u-boot-atmel/master' into 'u-boot-arm/master' 2013-09-04 11:50:25 +02:00
hwmon Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
i2c drivers: s3c44b0_i2c: delete an unused driver 2013-09-19 09:51:52 +02:00
input Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
misc Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
mmc Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-10-02 11:45:22 -04:00
mtd sf: probe: Add missing Atmel at25df321 flash 2013-10-16 00:14:03 +05:30
net Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
pci pci: Properly configure prefetchable memory region 2013-10-07 08:21:23 -04:00
pcmcia Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
power ARM: OMAP5: Power: Add new function to turn on SMPS10 2013-10-20 23:42:39 +02:00
qe Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
rtc Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
serial drivers: serial_s3c44b0: delete an unused driver 2013-09-19 09:52:04 +02:00
sound Sound: MAX98095: Support I2S0 channel 2013-09-24 09:10:33 -04:00
spi spi: mxc_spi: Fix double incrementing read pointer for unaligned buffers 2013-10-16 00:14:30 +05:30
tpm Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
twserial Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
usb usb: gadget: ether: return error from rx_submit if no request 2013-10-20 23:42:39 +02:00
video Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
watchdog microblaze: Fix watchdog initialization 2013-10-16 09:24:38 -04:00