]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: usb: hdpvr: disable zero-length read messages
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 22 May 2025 08:09:54 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:27 +0000 (16:28 +0200)
commit77ac2addb1dc0a5c357b077aa84878907d25d6a2
tree62f3f077d5884daab805c340311562b69515c839
parent1512ced62c8776707acf2123f7d02f56e80aa782
media: usb: hdpvr: disable zero-length read messages

[ Upstream commit b5ae5a79825ba8037b0be3ef677a24de8c063abf ]

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.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/hdpvr/hdpvr-i2c.c