u-boot/drivers/usb
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
..
eth net: smsc95xx: Add support for another SMSC95xx variant 2013-08-19 12:34:18 -05:00
gadget usb: gadget: ether: return error from rx_submit if no request 2013-10-20 23:42:39 +02:00
host OMAP5: USB: Add OMAP xHCI file and header 2013-10-20 23:42:39 +02:00
musb usb: Prevent using reserved registers on DM36x usb 2013-10-10 07:58:00 -04:00
musb-new Coding Style cleanup: remove trailing empty lines 2013-10-14 16:06:54 -04:00
phy Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
ulpi Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00