]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Oct 2020 09:38:26 +0000 (10:38 +0100)
commitbc405f28d0a8769509659c95d1942d4b568ba69f
tree307a88ccb81dc213452a446356cd951749513a5d
parent33adca1aadcf56b429e93f412efdc203788a55c4
media: ati_remote: sanity check for both endpoints

[ Upstream commit a8be80053ea74bd9c3f9a3810e93b802236d6498 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/rc/ati_remote.c