Files
linux/drivers/usb/core
Alan Stern fc566b5a21 USB: core: Avoid WARNings for 0-length descriptor requests
[ Upstream commit 60dfe484ce ]

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 <johan@kernel.org>
Reported-and-tested-by: syzbot+7dbcd9ff34dc4ed45240@syzkaller.appspotmail.com
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20210607152307.GD1768031@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-26 08:36:13 -04:00
..
2019-08-15 15:18:05 +02:00
2019-09-02 19:31:18 +02:00
2019-06-26 10:28:09 +08:00
2019-09-03 15:26:12 +02:00
2020-02-28 17:22:16 +01:00