summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@nxp.com>2023-07-08 02:00:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-25 18:46:28 +0300
commit2627335a1329a0d39d8d277994678571c4f21800 (patch)
tree0114cb3da7a00bdd13699209c2917ffb24552a3f /scripts/gdb/linux/utils.py
parentf4fc01af5b640bc39bd9403b5fd855345a2ad5f8 (diff)
downloadlinux-2627335a1329a0d39d8d277994678571c4f21800.tar.xz
usb: cdns3: fix incorrect calculation of ep_buf_size when more than one config
Previously, the cdns3_gadget_check_config() function in the cdns3 driver mistakenly calculated the ep_buf_size by considering only one configuration's endpoint information because "claimed" will be clear after call usb_gadget_check_config(). The fix involves checking the private flags EP_CLAIMED instead of relying on the "claimed" flag. Fixes: dce49449e04f ("usb: cdns3: allocate TX FIFO size according to composite EP number") Cc: stable <stable@kernel.org> Reported-by: Ravi Gunasekaran <r-gunasekaran@ti.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Acked-by: Peter Chen <peter.chen@kernel.org> Tested-by: Ravi Gunasekaran <r-gunasekaran@ti.com> Link: https://lore.kernel.org/r/20230707230015.494999-2-Frank.Li@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions