aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNiklas Neronin <[email protected]>2023-11-15 12:13:25 +0000
committerGreg Kroah-Hartman <[email protected]>2023-11-21 14:30:56 +0000
commit974bba5c118f4c2baf00de0356e3e4f7928b4cbc (patch)
treecbfdbc7ed8c8196074cdd5923bf20ba96f4c6398 /net/unix/af_unix.c
parentusb: dwc3: add missing of_node_put and platform_device_put (diff)
downloadkernel-974bba5c118f4c2baf00de0356e3e4f7928b4cbc.tar.gz
kernel-974bba5c118f4c2baf00de0356e3e4f7928b4cbc.zip
usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
The BOS descriptor defines a root descriptor and is the base descriptor for accessing a family of related descriptors. Function 'usb_get_bos_descriptor()' encounters an iteration issue when skipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in the same descriptor being read repeatedly. To address this issue, a 'goto' statement is introduced to ensure that the pointer and the amount read is updated correctly. This ensures that the function iterates to the next descriptor instead of reading the same descriptor repeatedly. Cc: [email protected] Fixes: 3dd550a2d365 ("USB: usbcore: Fix slab-out-of-bounds bug during device reset") Signed-off-by: Niklas Neronin <[email protected]> Acked-by: Mathias Nyman <[email protected]> Reviewed-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions