android_kernel_motorola_sm6375/drivers/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Shichao Lai 51fe16c058 usb-storage: alauda: Check whether the media is initialized
[ Upstream commit 16637fea001ab3c8df528a8995b3211906165a30 ]

The member "uzonesize" of struct alauda_info will remain 0
if alauda_init_media() fails, potentially causing divide errors
in alauda_read_data() and alauda_write_lba().
- Add a member "media_initialized" to struct alauda_info.
- Change a condition in alauda_check_media() to ensure the
  first initialization.
- Add an error check for the return value of alauda_init_media().

Fixes: e80b0fade0 ("[PATCH] USB Storage: add alauda support")
Reported-by: xingwei lee <[email protected]>
Reported-by: yue sun <[email protected]>
Reviewed-by: Alan Stern <[email protected]>
Signed-off-by: Shichao Lai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-07-05 09:08:20 +02:00
..
atm
c67x00
cdns3 usb: cdns3: fix memory double free when handle zero packet 2024-03-01 13:13:36 +01:00
chipidea usb: chipidea: wait controller resume finished for wakeup irq 2024-01-25 14:34:29 -08:00
class USB: class: cdc-wdm: Fix CPU lockup caused by excessive log messages 2024-07-05 09:08:15 +02:00
common
core usb: Disable USB3 LPM at shutdown 2024-05-02 16:18:32 +02:00
dwc2 usb: dwc2: host: Fix dereference issue in DDMA completion flow. 2024-05-02 16:18:32 +02:00
dwc3 Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only" 2024-01-25 14:34:29 -08:00
early
gadget usb: gadget: f_fs: Fix race between aio_cancel() and AIO request complete 2024-07-05 09:08:13 +02:00
host xhci: Apply broken streams quirk to Etron EJ188 xHCI host 2024-07-05 09:08:15 +02:00
image
isp1760
misc
mon usb: mon: Fix atomicity violation in mon_bin_vma_fault 2024-01-25 14:34:30 -08:00
mtu3
musb
phy usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host() 2024-01-25 14:34:29 -08:00
renesas_usbhs
roles usb: roles: don't get/set_role() when usb_role_switch is unregistered 2024-03-01 13:13:36 +01:00
serial USB: serial: option: add Telit FN920C04 rmnet compositions 2024-05-02 16:18:32 +02:00
storage usb-storage: alauda: Check whether the media is initialized 2024-07-05 09:08:20 +02:00
typec usb: typec: ucsi: displayport: Fix potential deadlock 2024-05-25 16:17:18 +02:00
usbip
Kconfig
Makefile
usb-skeleton.c