]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: iguanair: add sanity checks
authorOliver Neukum <oneukum@suse.com>
Tue, 30 Jul 2019 08:50:44 +0000 (05:50 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 May 2020 20:19:23 +0000 (21:19 +0100)
commitf14c86bab393537cb41457ab4b5d1b47cd3a8c2c
treee06170ba2a3b0c57ba9881c80ee8048ea80f38be
parentbff51c2bf3fa454e89f6b0d162eb47b3a30fed18
media: iguanair: add sanity checks

commit ab1cbdf159beba7395a13ab70bc71180929ca064 upstream.

The driver needs to check the endpoint types, too, as opposed
to the number of endpoints. This also requires moving the check earlier.

Reported-by: syzbot+01a77b82edaa374068e1@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/rc/iguanair.c