Files
twx-linux/drivers
Yoshihiro Shimoda 56a3eb5fa5 usb: gadget: udc: renesas_usb3: Fix sysfs interface of "role"
commit 5dac665cf4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-25 10:50:20 +02:00
..
…
…
…
…
…
…
…
…
…
2019-08-25 10:50:17 +02:00
…
…
…
…
2019-08-25 10:50:08 +02:00
…
…
2019-08-16 10:13:47 +02:00
…
…
…
…
…
…
…
2019-07-31 07:28:24 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…