diff options
| author | Frank Li <[email protected]> | 2023-07-07 23:00:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-07-25 15:46:28 +0000 |
| commit | 2627335a1329a0d39d8d277994678571c4f21800 (patch) | |
| tree | 0114cb3da7a00bdd13699209c2917ffb24552a3f /rust/helpers.c | |
| parent | usb: gadget: call usb_gadget_check_config() to verify UDC capability (diff) | |
| download | kernel-2627335a1329a0d39d8d277994678571c4f21800.tar.gz kernel-2627335a1329a0d39d8d277994678571c4f21800.zip | |
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 <[email protected]>
Reported-by: Ravi Gunasekaran <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Acked-by: Peter Chen <[email protected]>
Tested-by: Ravi Gunasekaran <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
