linux_dsm_epyc7002/drivers/usb/gadget/udc
Yoshihiro Shimoda 5dac665cf4 usb: gadget: udc: renesas_usb3: Fix sysfs interface of "role"
Since the role_store() uses strncmp(), it's possible to refer
out-of-memory if the sysfs data size is smaller than strlen("host").
This patch fixes it by using sysfs_streq() instead of strncmp().

Fixes: cc995c9ec1 ("usb: gadget: udc: renesas_usb3: add support for usb role swap")
Cc: <stable@vger.kernel.org> # v4.12+
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2019-08-12 08:55:24 +03:00
..
aspeed-vhub usb: introduce usb_ep_type_string() function 2019-05-03 09:13:48 +03:00
bdc USB: changes for v5.1 merge window 2019-02-15 09:08:57 +01:00
amd5536udc_pci.c
amd5536udc.h
at91_udc.c usb: gadget: at91_udc: Remove unneeded variable 2019-06-18 11:58:29 +03:00
at91_udc.h
atmel_usba_udc.c usb: gadget: atmel: tie wake lock to running clock 2019-05-03 09:13:49 +03:00
atmel_usba_udc.h usb: gadget: atmel: support USB suspend 2019-05-03 09:13:49 +03:00
bcm63xx_udc.c USB: gadget: udc: bcm63xx_udc: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
core.c USB: gadget: Improve kerneldoc for usb_ep_dequeue() 2019-02-06 08:37:16 +02:00
dummy_hcd.c usb: introduce usb_ep_type_string() function 2019-05-03 09:13:48 +03:00
fotg210-udc.c fotg210-udc: Remove unneeded variable 2019-06-18 11:58:29 +03:00
fotg210.h
fsl_mxc_udc.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
fsl_qe_udc.c
fsl_qe_udc.h
fsl_udc_core.c usb: gadget: fsl_udc_core: fixup struct_udc_setup documentation 2018-10-02 10:43:12 +03:00
fsl_usb2_udc.h
fusb300_udc.c usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i] 2019-06-06 13:51:57 +03:00
fusb300_udc.h
goku_udc.c proc: introduce proc_create_single{,_data} 2018-05-16 07:23:35 +02:00
goku_udc.h usb: gadget: udc: change comparison to bitshift when dealing with a mask 2018-03-08 15:12:00 +02:00
gr_udc.c USB: gadget: udc: gr_udc: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
gr_udc.h USB: gadget: udc: gr_udc: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
Kconfig USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
lpc32xx_udc.c usb: gadget: udc: lpc32xx: fix return value check in lpc32xx_udc_probe() 2019-06-06 13:51:57 +03:00
m66592-udc.c
m66592-udc.h
Makefile usb/gadget: Add driver for Aspeed SoC virtual hub 2018-05-15 10:06:53 +03:00
mv_u3d_core.c
mv_u3d.h
mv_udc_core.c usb: gadget: udc: Remove unnecessary parentheses 2018-10-02 10:30:07 +03:00
mv_udc.h
net2272.c usb: gadget: net2272: remove redundant assignments to pointer 's' 2019-06-18 11:58:29 +03:00
net2272.h
net2280.c USB: UDC: net22{80,72}: remove mistaken test of req->zero 2019-05-03 09:13:47 +03:00
net2280.h
omap_udc.c USB: omap_udc: Remove unneeded variable 2019-06-18 11:58:29 +03:00
omap_udc.h
pch_udc.c PCI: Move Rohm Vendor ID to generic list 2019-02-01 17:24:52 -06:00
pxa25x_udc.c USB: gadget: pxa25x: Re-use DEFINE_SHOW_ATTRIBUTE() macro 2018-03-08 15:12:00 +02:00
pxa25x_udc.h
pxa27x_udc.c USB: gadget: udc: pxa27x_udc: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
pxa27x_udc.h USB: gadget: udc: pxa27x_udc: no need to check return value of debugfs_create functions 2018-05-31 12:54:22 +02:00
r8a66597-udc.c usb: gadget: r8a66597: Fix a possible sleep-in-atomic-context bugs in r8a66597_queue() 2018-07-17 10:12:51 +03:00
r8a66597-udc.h
renesas_usb3.c usb: gadget: udc: renesas_usb3: Fix sysfs interface of "role" 2019-08-12 08:55:24 +03:00
s3c2410_udc.c USB: gadget: udc: s3c2410_udc: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-07 08:12:15 +02:00
s3c2410_udc.h
s3c-hsudc.c
snps_udc_core.c usb: gadget: udc: reduce indentation 2019-01-28 12:51:30 +02:00
snps_udc_plat.c
trace.c
trace.h gadget event trace : add request pointer 2017-12-11 12:36:49 +02:00
udc-xilinx.c usb: gadget: fix spelling mistakeis "[En]queing" -> "[En]queuing" 2018-10-02 10:28:08 +03:00