diff options
author | Dan Carpenter | 2022-03-04 10:35:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2022-03-15 18:21:25 +0100 |
commit | b07cabb8361dc692522538205552b1b9dab134be (patch) | |
tree | 5f1177c37d7fc463e731c8005b30e28a287efbbb /usr/gen_initramfs.sh | |
parent | 298ac860af9a0b604bcf06749a6acbd07548db99 (diff) |
USB: storage: ums-realtek: fix error code in rts51x_read_mem()
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: 065e60964e29 ("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>
Diffstat (limited to 'usr/gen_initramfs.sh')
0 files changed, 0 insertions, 0 deletions