mirror-linux/drivers/usb/core
Yang Yingliang 6fe1adeabc usb: core: hcd: Fix return value check in usb_hcd_setup_local_mem()
[ Upstream commit 3c347cdafa ]

If dmam_alloc_attrs() fails, it returns NULL pointer and never
return ERR_PTR(), so repleace IS_ERR() with IS_ERR_OR_NULL()
and if it's NULL, returns -ENOMEM.

Fixes: 9ba26f5cec ("ARM: sa1100/assabet: move dmabounce hack to ohci driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221125064120.2842452-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:41 +01:00
..
Kconfig
Makefile usb: misc: Add onboard_usb_hub driver 2022-07-08 14:53:50 +02:00
buffer.c
config.c usb: core: config: using bit mask instead of individual bits 2021-12-12 13:06:39 +01:00
devices.c usb: core: devices: drop redundant buffer overflow checks 2022-04-26 13:57:38 +02:00
devio.c usb: move from strlcpy with unused retval to strscpy 2022-08-19 11:08:54 +02:00
driver.c usb/core: fix repeated words in comments 2022-07-27 14:32:29 +02:00
endpoint.c usb: common: add function to get interval expressed in us unit 2021-03-10 09:37:17 +01:00
file.c
generic.c usb: core: Fix file path that does not exist 2021-12-05 14:24:19 +01:00
hcd-pci.c USB: hcd-pci: Drop the unused id parameter from usb_hcd_pci_probe() 2022-09-01 16:08:35 +02:00
hcd.c usb: core: hcd: Fix return value check in usb_hcd_setup_local_mem() 2022-12-31 13:32:41 +01:00
hub.c USB: core: Fix RST error in hub.c 2022-09-05 13:06:34 +02:00
hub.h usb: core: hub: Create platform devices for onboard hubs in hub_probe() 2022-07-08 14:53:50 +02:00
ledtrig-usbport.c
message.c USB: core: Avoid WARNings for 0-length descriptor requests 2021-06-09 11:11:39 +02:00
notify.c
of.c
otg_productlist.h
phy.c
phy.h
port.c usb: hub: port: add sysfs entry to switch port power 2022-06-12 06:49:46 +02:00
quirks.c usb: add NO_LPM quirk for Realforce 87U Keyboard 2022-11-09 14:07:47 +01:00
sysfs.c usb: core: sysfs: convert sysfs snprintf to sysfs_emit 2022-06-27 14:58:26 +02:00
urb.c kmsan: handle memory sent to/from USB 2022-10-03 14:03:22 -07:00
usb-acpi.c USB: ACPI: Replace usb_acpi_find_port() with acpi_find_child_by_adr() 2022-06-20 20:32:59 +02:00
usb.c usb/core: fix repeated words in comments 2022-07-27 14:32:29 +02:00
usb.h