]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: flexcop-usb: fix sanity check of bNumEndpoints
authorDongliang Mu <mudongliangabcd@gmail.com>
Thu, 2 Jun 2022 05:50:24 +0000 (06:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:44 +0000 (13:39 +0200)
commitc94e77516fc3211a79e834bd281f3642db16c2b0
treecf231071d7090880daffe8755c24e1af72b8d74c
parent061057a9499701dc9299c4ccc295ede5d61a9974
media: flexcop-usb: fix sanity check of bNumEndpoints

[ Upstream commit f62dc8f6bf82d1b307fc37d8d22cc79f67856c2f ]

Commit d725d20e81c2 ("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: d725d20e81c2 ("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>
drivers/media/usb/b2c2/flexcop-usb.c