linux/drivers/usb/gadget
Colin Ian King e38a77c48a usb: gadget: r8a66597: Add missing null check on return from platform_get_resource
[ Upstream commit 9c2076090c ]

The call to platform_get_resource can potentially return a NULL pointer
on failure, so add this check and return -EINVAL if it fails.

Fixes: c41442474a ("usb: gadget: R8A66597 peripheral controller support.")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Dereference null return")
Link: https://lore.kernel.org/r/20210406184510.433497-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-05-14 09:50:18 +02:00
..
function usb: gadget/function/f_fs string table fix for multiple languages 2021-05-11 14:47:39 +02:00
legacy usb: webcam: Invalid size of Processing Unit Descriptor 2021-05-11 14:47:17 +02:00
udc usb: gadget: r8a66597: Add missing null check on return from platform_get_resource 2021-05-14 09:50:18 +02:00
composite.c usb: gadget: Fix spinlock lockup on usb_function_deactivate 2021-01-12 20:18:21 +01:00
config.c usb: gadget: Fix double free of device descriptor pointers 2021-05-11 14:47:39 +02:00
configfs.c usb: gadget: configfs: Fix KASAN use-after-free 2021-03-25 09:04:14 +01:00
configfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
epautoconf.c usb: gadget: move non-super speed code out of usb_ep_autoconfig_ss() 2019-02-07 13:14:51 +02:00
functions.c USB: add SPDX identifiers to all remaining files in drivers/usb/ 2017-11-04 11:48:02 +01:00
Kconfig usb: gadget: select CONFIG_CRC32 2021-01-12 20:18:20 +01:00
Makefile Revert "usb:gadget Separated decoding functions from dwc3 driver." 2019-07-04 13:02:09 +02:00
u_f.c usb: gadget: Change Andrzej Pietrasiewicz's e-mail address 2019-02-11 11:12:29 +02:00
u_f.h USB: gadget: u_f: Unbreak offset calculation in VLAs 2020-08-27 09:25:06 +02:00
u_os_desc.h usb: gadget: Change Andrzej Pietrasiewicz's e-mail address 2019-02-11 11:12:29 +02:00
usbstring.c usb: gadget: fix langid kernel-doc warning in usbstring.c 2020-07-09 10:13:07 +03:00