]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Thu, 17 Oct 2024 13:11:12 +0000 (15:11 +0200)
commitcde120f5870f904f1f723ae28b9ed34ed601b9a8
tree05ade005d7b4e7402950d3bf6a699615f833d1a0
parent39c22ede77394b36b02364f17d354d0f88e7c19c
USB: misc: cypress_cy7c63: check for short transfer

commit 49cd2f4d747eeb3050b76245a7f72aa99dbd3310 upstream.

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