]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: misc: cypress_cy7c63: check for short transfer
authorOliver Neukum <oneukum@suse.com>
Thu, 12 Sep 2024 12:54:43 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Sep 2024 05:54:50 +0000 (07:54 +0200)
commit49cd2f4d747eeb3050b76245a7f72aa99dbd3310
tree96b151fa4f63c72378c261ca38a898437d3e2d8c
parent8265d06b7794493d82c5c21a12d7ba43eccc30cb
USB: misc: cypress_cy7c63: check for short transfer

As we process the second byte of a control transfer, transfers
of less than 2 bytes must be discarded.

This bug is as old as the driver.

SIgned-off-by: Oliver Neukum <oneukum@suse.com>
CC: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240912125449.1030536-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/cypress_cy7c63.c