]> git.itanic.dy.fi Git - linux-stable/commit
media: ati_remote: sanity check for both endpoints
authorOliver Neukum <oneukum@suse.com>
Wed, 16 Sep 2020 13:50:51 +0000 (15:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 09:24:07 +0000 (11:24 +0200)
commita8be80053ea74bd9c3f9a3810e93b802236d6498
tree38a21f2fa68c209007395f7439d5a9c91430bc7a
parentce5d72b6f5a0b694b19cd812788d8e1ea49aea21
media: ati_remote: sanity check for both endpoints

If you do sanity checks, you should do them for both endpoints.
Hence introduce checking for endpoint type for the output
endpoint, too.

Reported-by: syzbot+998261c2ae5932458f6c@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+huawei@kernel.org>
drivers/media/rc/ati_remote.c