diff options
author | Alan Stern <[email protected]> | 2021-06-07 11:23:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-06-09 11:11:39 +0200 |
commit | 60dfe484cef45293e631b3a6e8995f1689818172 (patch) | |
tree | 403ba4cb844a2869e6851592dfe82f0caa2a82f9 /drivers/usb/cdns3/cdns3-imx.c | |
parent | 307462a6f5c5a563ec084bb315f4e0279dfb2026 (diff) |
USB: core: Avoid WARNings for 0-length descriptor requests
The USB core has utility routines to retrieve various types of
descriptors. These routines will now provoke a WARN if they are asked
to retrieve 0 bytes (USB "receive" requests must not have zero
length), so avert this by checking the size argument at the start.
CC: Johan Hovold <[email protected]>
Reported-and-tested-by: [email protected]
Reviewed-by: Johan Hovold <[email protected]>
Signed-off-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions