linux-imx/drivers/media/usb/b2c2
Dongliang Mu 3d50e4cef2 media: flexcop-usb: fix sanity check of bNumEndpoints
[ Upstream commit f62dc8f6bf ]

Commit d725d20e81 ("media: flexcop-usb: sanity checking of endpoint type
") adds a sanity check for endpoint[1], but fails to modify the sanity
check of bNumEndpoints.

Fix this by modifying the sanity check of bNumEndpoints to 2.

Link: https://lore.kernel.org/linux-media/20220602055027.849014-1-dzm91@hust.edu.cn
Fixes: d725d20e81 ("media: flexcop-usb: sanity checking of endpoint type")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:12:42 +02:00
..
flexcop-usb.c media: flexcop-usb: fix sanity check of bNumEndpoints 2024-06-12 11:12:42 +02:00
flexcop-usb.h
Kconfig
Makefile