]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: mdc800: handle signal and read racing
authorOliver Neukum <oneukum@suse.com>
Mon, 9 Feb 2026 14:20:48 +0000 (15:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2026 18:26:46 +0000 (10:26 -0800)
commit2d6d260e9a3576256fe9ef6d1f7930c9ec348723
tree6cb86192763ed71a24b5eec51d55473004dbb152
parent7a875c09899ba0404844abfd8f0d54cdc481c151
usb: mdc800: handle signal and read racing

If a signal arrives after a read has partially completed,
we need to return the number of bytes read. -EINTR is correct
only if that number is zero.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/20260209142048.1503791-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/image/mdc800.c