Ubuntu-focal-kernel/drivers/usb
Shantanu Goel 5d7fe0a456 usb: uas: set host status byte on data completion error
BugLink: https://bugs.launchpad.net/bugs/2081278

[ Upstream commit 9d32685a251a754f1823d287df233716aa23bcb9 ]

Set the host status byte when a data completion error is encountered
otherwise the upper layer may end up using the invalid zero'ed data.
The following output was observed from scsi/sd.c prior to this fix.

[   11.872824] sd 0:0:0:1: [sdf] tag#9 data cmplt err -75 uas-tag 1 inflight:
[   11.872826] sd 0:0:0:1: [sdf] tag#9 CDB: Read capacity(16) 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00
[   11.872830] sd 0:0:0:1: [sdf] Sector size 0 reported, assuming 512.

Signed-off-by: Shantanu Goel <sgoel01@yahoo.com>
Acked-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/87msnx4ec6.fsf@yahoo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-09-27 10:50:31 +02:00
..
atm usb: atm: cxacru: fix endpoint checking in cxacru_bind() 2024-08-02 16:16:22 +02:00
c67x00
cdns3 usb: cdns3: fix memory double free when handle zero packet 2024-04-26 10:54:08 +02:00
chipidea usb: chipidea: wait controller resume finished for wakeup irq 2024-02-29 15:23:39 +01:00
class cdc-acm: Add DISABLE_ECHO quirk for GE HealthCare UI Controller 2024-09-27 10:50:27 +02:00
common usb: common: usb-conn-gpio: Prevent bailing out if initial role is none 2023-10-30 11:41:52 +01:00
core usb: core: sysfs: Unmerge @usb3_hardware_lpm_attr_group in remove_power_attributes() 2024-09-27 10:50:28 +02:00
dwc2 usb: dwc2: host: Fix dereference issue in DDMA completion flow. 2024-06-07 15:01:44 +02:00
dwc3 usb: dwc3: st: add missing depopulate in probe error path 2024-09-27 10:50:28 +02:00
early
gadget usb: gadget: fsl: Increase size of name buffer for endpoints 2024-09-27 10:50:25 +02:00
host xhci: Fix Panther point NULL pointer deref at full-speed re-enumeration 2024-09-27 10:50:22 +02:00
image
isp1760
misc usb: misc: uss720: check for incompatible versions of the Belkin F5U002 2024-08-02 16:16:18 +02:00
mon usb: mon: Fix atomicity violation in mon_bin_vma_fault 2024-02-29 15:23:39 +01:00
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-08-09 12:25:20 +02:00
musb usb: musb: da8xx: fix a resource leak in probe() 2024-08-02 16:16:22 +02:00
phy usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host() 2024-02-29 15:23:39 +01:00
renesas_usbhs
roles usb: roles: don't get/set_role() when usb_role_switch is unregistered 2024-04-26 10:54:08 +02:00
serial USB: serial: mos7840: fix crash on resume 2024-09-27 10:50:29 +02:00
storage usb: uas: set host status byte on data completion error 2024-09-27 10:50:31 +02:00
typec usb: typec: ucsi: Fix null pointer dereference in trace 2024-09-27 10:50:30 +02:00
usbip usbip: Don't submit special requests twice 2024-09-27 10:50:30 +02:00
Kconfig
Makefile
usb-skeleton.c