Files
Wolfram Sang fc944ff976 i2c: robotfuzz-osif: disable zero-length read messages
commit 56ad91c1aa9c18064348edf69308080b03c9dc48 upstream.

This driver passes the length of an i2c_msg directly to
usb_control_msg(). If the message is now a read and of length 0, it
violates the USB protocol and a warning will be printed. Enable the
I2C_AQ_NO_ZERO_LEN_READ quirk for this adapter thus forbidding 0-length
read messages altogether.

Fixes: 83e53a8f12 ("i2c: Add bus driver for for OSIF USB i2c device.")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: <stable@vger.kernel.org> # v3.14+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250522064234.3721-2-wsa+renesas@sang-engineering.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ulrich Hecht <uli@kernel.org>
2025-12-24 11:24:17 +00:00
..
2019-06-19 08:20:55 +02:00
2019-10-07 18:55:08 +02:00
2020-10-14 09:51:08 +02:00
2021-05-22 10:57:33 +02:00
2021-09-22 11:45:21 +02:00
2025-12-24 11:21:54 +00:00
2021-05-22 10:57:33 +02:00
2021-12-25 17:59:56 +05:30
2021-12-25 17:59:56 +05:30
2019-10-05 12:48:12 +02:00
2021-05-22 10:57:34 +02:00