summaryrefslogtreecommitdiff
path: root/tools/debugging
diff options
context:
space:
mode:
authorSeungjin Bae <eeodqql09@gmail.com>2026-05-18 19:43:14 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-22 11:13:31 +0200
commit7d9633528dd40e33964d2dc74a5abbf5c4d116ce (patch)
treecb8a626e1946932a3f675bc758e6350c6511b050 /tools/debugging
parentf1ecb0e563595d4ba9a3b8e39ed52a3dc2d8e328 (diff)
usb: gadget: dummy_hcd: Reject hub port requests for non-existent ports
The `dummy_hub_control()` function handles USB hub class requests to the virtual root hub. The `GetPortStatus` case returns -EPIPE for requests with `wIndex != 1`, since the virtual root hub has only a single port. However, the `ClearPortFeature` and `SetPortFeature` cases lack the same check. Fix this by extending the `wIndex != 1` rejection to both cases, matching the existing behavior of `GetPortStatus`. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable <stable@kernel.org> Suggested-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Seungjin Bae <eeodqql09@gmail.com> Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Link: https://patch.msgid.link/20260518234314.1889396-1-eeodqql09@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/debugging')
0 files changed, 0 insertions, 0 deletions