u-boot-brain/drivers/usb/gadget
Seung-Woo Kim 8b387f112b gadget: f_thor: fix wrong file size cast
Casting 32bit int value directly into 64bit unsigned type causes
wrong value for file size equal or larger than 2GB. Fix the wrong
file size by casting uint32_t first.

Fixes: commit 1fe9ae76b1 ("gadget: f_thor: update to support more than 4GB file as thor 5.0")
Reported-by: Junghoon Kim <jhoon20.kim@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
2021-01-31 14:08:56 +01:00
..
udc dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
at91_udc.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
at91_udc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel_usba_udc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
atmel_usba_udc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm_udc_otg_phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
bcm_udc_otg.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ci_udc.c usb: ci_udc: Add function to remove usb device 2020-09-01 14:47:43 +02:00
ci_udc.h ci_udc: Update the ci_udc driver to support bulk transfers 2015-05-29 12:41:04 +02:00
composite.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
config.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
core.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
designware_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dwc2_udc_otg_phy.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dwc2_udc_otg_priv.h usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register 2019-04-21 10:26:52 +02:00
dwc2_udc_otg_regs.h usb: dwc2: add "u-boot,force-vbus-detection" for stm32 2020-11-22 13:18:20 +01:00
dwc2_udc_otg_xfer_dma.c usb: dwc2: Fix control OUT transfer issue 2020-10-20 00:48:58 +02:00
dwc2_udc_otg.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
ep0.c common: Move serial_printf() to the serial header 2019-12-02 18:23:10 -05:00
ep0.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
epautoconf.c usb: gadget: Add match_ep() op to usb_gadget_ops 2019-11-07 00:24:59 +01:00
ether.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
f_dfu.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
f_dfu.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
f_fastboot.c fastboot: Fix fastboot reboot fail by changing functions order 2020-09-01 14:47:43 +02:00
f_mass_storage.c usb: gadget: Fix controller index in UMS 2020-09-01 14:47:43 +02:00
f_rockusb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
f_sdp.c f_sdp: Change bInterval of interrupt endpoint to 3 2020-09-01 14:47:43 +02:00
f_thor.c gadget: f_thor: fix wrong file size cast 2021-01-31 14:08:56 +01:00
f_thor.h gadget: f_thor: update to support more than 4GB file as thor 5.0 2018-05-18 13:17:30 +02:00
fotg210.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
g_dnl.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
gadget_chips.h usb: gadget: Add bcdDevice for the MTU3 USB Gadget Controller 2020-10-20 00:49:05 +02:00
Kconfig usb: max3420: add the gadget driver 2020-09-01 14:47:43 +02:00
Makefile usb: max3420: add the gadget driver 2020-09-01 14:47:43 +02:00
max3420_udc.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
ndis.h USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
pxa25x_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pxa25x_udc.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pxa27x_udc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
rndis.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
rndis.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
storage_common.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
usbstring.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00