summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorNiklas Neronin <niklas.neronin@linux.intel.com>2023-11-15 14:13:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-21 15:30:56 +0100
commit974bba5c118f4c2baf00de0356e3e4f7928b4cbc (patch)
treecbfdbc7ed8c8196074cdd5923bf20ba96f4c6398 /COPYING
parent791cd7afe51b0c770264836ab0607766e3e80f52 (diff)
downloadlinux-stable-974bba5c118f4c2baf00de0356e3e4f7928b4cbc.tar.gz
linux-stable-974bba5c118f4c2baf00de0356e3e4f7928b4cbc.tar.bz2
linux-stable-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: stable@vger.kernel.org Fixes: 3dd550a2d365 ("USB: usbcore: Fix slab-out-of-bounds bug during device reset") Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com> Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com> Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20231115121325.471454-1-niklas.neronin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions