]> git.itanic.dy.fi Git - linux-stable/commit
mceusb: fix NULL-deref at probe
authorJohan Hovold <johan@kernel.org>
Tue, 7 Mar 2017 18:14:13 +0000 (15:14 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:17:58 +0000 (14:17 +0200)
commit9b49b71f3ba5333e0ed97cec6309c293404edfbf
tree8c90f94300216b609058113d9cbbb0e304411905
parent587e719ffd247421d3d66b9b04d12f6787617d23
mceusb: fix NULL-deref at probe

commit 03eb2a557ed552e920a0942b774aaf931596eec1 upstream.

Make sure to check for the required out endpoint to avoid dereferencing
a NULL-pointer in mce_request_packet should a malicious device lack such
an endpoint. Note that this path is hit during probe.

Fixes: 66e89522aff7 ("V4L/DVB: IR: add mceusb IR receiver driver")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/mceusb.c