aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorFrank Li <[email protected]>2023-07-07 19:00:14 -0400
committerGreg Kroah-Hartman <[email protected]>2023-07-25 17:46:25 +0200
commitf4fc01af5b640bc39bd9403b5fd855345a2ad5f8 (patch)
tree332af4d99ae41da8d9aa4a8b9c1c7567cb120852 /lib/test_fortify/write_overflow-strncpy-src.c
parent609fded3f91972ada551c141c5d04a71704f8967 (diff)
usb: gadget: call usb_gadget_check_config() to verify UDC capability
The legacy gadget driver omitted calling usb_gadget_check_config() to ensure that the USB device controller (UDC) has adequate resources, including sufficient endpoint numbers and types, to support the given configuration. Previously, usb_add_config() was solely invoked by the legacy gadget driver. Adds the necessary usb_gadget_check_config() after the bind() operation to fix the issue. Fixes: dce49449e04f ("usb: cdns3: allocate TX FIFO size according to composite EP number") Cc: stable <[email protected]> Reported-by: Ravi Gunasekaran <[email protected]> Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions