TencentOS-kernel/drivers/usb/gadget/udc
Colin Ian King c4d7d3b33c usb: gadget: r8a66597: Add missing null check on return from platform_get_resource
[ Upstream commit 9c2076090c2815fe7c49676df68dde7e60a9b9fc ]

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: c41442474a26 ("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>
2021-05-20 16:07:50 +08:00
..
aspeed-vhub usb: gadget: aspeed: fix dma map failure 2021-05-20 16:07:48 +08:00
bdc usb: bdc: Make bdc pci driver depend on BROKEN 2021-04-12 12:51:38 +08:00
Kconfig
Makefile
amd5536udc.h
amd5536udc_pci.c usb: gadget: udc: amd5536udc_pci fix null-ptr-dereference 2021-05-20 16:06:51 +08:00
at91_udc.c
at91_udc.h
atmel_usba_udc.c usb: gadget: udc: atmel: fix uninitialized read in debug printk 2021-03-16 16:31:59 +08:00
atmel_usba_udc.h
bcm63xx_udc.c
core.c usb: udc: core: Use lock when write to soft_connect 2021-04-12 12:51:38 +08:00
dummy_hcd.c usb: gadget: dummy_hcd: fix gpf in gadget_setup 2021-05-20 16:07:36 +08:00
fotg210-udc.c fotg210-udc: Complete OUT requests on short packets 2021-05-20 16:07:47 +08:00
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c
fsl_qe_udc.h
fsl_udc_core.c
fsl_usb2_udc.h
fusb300_udc.c
fusb300_udc.h
goku_udc.c usb: gadget: goku_udc: fix potential crashes in probe 2021-03-16 16:40:41 +08:00
goku_udc.h
gr_udc.c usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init() 2021-03-16 16:32:31 +08:00
gr_udc.h
lpc32xx_udc.c usb: gadget: lpc32xx_udc: don't dereference ep pointer before null check 2021-03-16 16:30:22 +08:00
m66592-udc.c usb: gadget: fix potential double-free in m66592_probe. 2021-03-16 16:30:23 +08:00
m66592-udc.h
mv_u3d.h
mv_u3d_core.c
mv_udc.h
mv_udc_core.c usb: gadget: udc: Potential Oops in error handling code 2021-03-16 16:31:01 +08:00
net2272.c usb: gadget: net2272: Fix a memory leak in an error handling path in 'net2272_plat_probe()' 2021-03-16 16:28:02 +08:00
net2272.h
net2280.c usb: gadget: net2280: fix memory leak on probe error handling paths 2021-03-16 16:33:25 +08:00
net2280.h
omap_udc.c
omap_udc.h
pch_udc.c usb: gadget: pch_udc: Check for DMA mapping error 2021-05-20 16:07:46 +08:00
pxa25x_udc.c
pxa25x_udc.h
pxa27x_udc.c
pxa27x_udc.h
r8a66597-udc.c usb: gadget: r8a66597: Add missing null check on return from platform_get_resource 2021-05-20 16:07:50 +08:00
r8a66597-udc.h
renesas_usb3.c
s3c-hsudc.c
s3c2410_udc.c USB: gadget: udc: s3c2410_udc: Remove pointless NULL check in s3c2410_udc_nuke 2021-03-16 16:30:22 +08:00
s3c2410_udc.h
snps_udc_core.c
snps_udc_plat.c USB: gadget: udc: fix wrong pointer passed to IS_ERR() and PTR_ERR() 2021-05-20 16:07:48 +08:00
trace.c
trace.h
udc-xilinx.c