WSL2-Linux-Kernel/drivers/usb/storage
Dan Carpenter 5d48ddbcaf USB: storage: ums-realtek: fix error code in rts51x_read_mem()
[ Upstream commit b07cabb836 ]

The rts51x_read_mem() function should return negative error codes.
Currently if the kmalloc() fails it returns USB_STOR_TRANSPORT_ERROR (3)
which is treated as success by the callers.

Fixes: 065e60964e ("ums_realtek: do not use stack memory for DMA")
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220304073504.GA26464@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:40 +02:00
..
Kconfig
Makefile
alauda.c
cypress_atacb.c scsi: core: Kill DRIVER_SENSE 2021-05-31 22:48:21 -04:00
datafab.c usb: storage: datafab: remove redundant assignment of variable result 2021-04-22 10:52:10 +02:00
debug.c
debug.h
ene_ub6250.c USB: usb-storage: Fix use of bitfields for hardware data in ene_ub6250.c 2022-04-08 14:22:48 +02:00
freecom.c usb: storage: freecom: remove unneeded break 2020-10-28 12:22:50 +01:00
initializers.c
initializers.h
isd200.c
jumpshot.c
karma.c
onetouch.c
option_ms.c
option_ms.h
protocol.c
protocol.h
realtek_cr.c USB: storage: ums-realtek: fix error code in rts51x_read_mem() 2022-04-08 14:23:40 +02:00
scsiglue.c Revert "usb-storage: fix sdev->host->dma_dev" 2020-12-04 16:01:23 +01:00
scsiglue.h
sddr09.c
sddr55.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
shuttle_usbat.c
sierra_ms.c
sierra_ms.h
transport.c scsi: usb-storage: Use scsi_cmd_to_rq() instead of scsi_cmnd.request 2021-08-11 22:25:42 -04:00
transport.h
uas-detect.h
uas.c USB: UAS: introduce a quirk to set no_write_same 2020-12-09 20:00:26 +01:00
unusual_alauda.h
unusual_cypress.h
unusual_datafab.h
unusual_devs.h usb-storage: Add unusual-devs entry for VL817 USB-SATA bridge 2022-02-01 17:27:04 +01:00
unusual_ene_ub6250.h
unusual_freecom.h
unusual_isd200.h
unusual_jumpshot.h
unusual_karma.h
unusual_onetouch.h
unusual_realtek.h
unusual_sddr09.h
unusual_sddr55.h
unusual_uas.h Re-enable UAS for LaCie Rugged USB3-FW with fk quirk 2021-09-21 16:37:26 +02:00
unusual_usbat.h
usb.c USB: UAS: introduce a quirk to set no_write_same 2020-12-09 20:00:26 +01:00
usb.h
usual-tables.c