diff options
| author | Griffin Kroah-Hartman <griffin@kroah.com> | 2026-07-22 10:17:39 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-23 10:34:41 +0200 |
| commit | a29496745aa335d97f617385809583241e118610 (patch) | |
| tree | a64277867925abbcbcbc9d13e3e96301b40b1ac1 /arch | |
| parent | 913910ed36ba14354ea6e1d4978e2e4c14c3df28 (diff) | |
| download | linux-next-a29496745aa335d97f617385809583241e118610.tar.gz linux-next-a29496745aa335d97f617385809583241e118610.zip | |
usb: core: Strengthen error handling in hub_hub_status()
Add additional error handling after the call to get_hub_status() in
hub_hub_status().
get_hub_status() uses usb_control_msg() which does not verify that the
message is the correct length, substituting it for
usb_control_msg_recv() would also solve this issue but increase memory
allocations.
Instead, error handling is copied from the method used in
hub_ext_port_status(), which shares the same flow of logic as
hub_hub_status().
Assisted-by: gkh_clanker_t1000
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
Link: https://patch.msgid.link/20260722-usb_core_patches_2-v3-1-87622252bfdd@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
