summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-fh.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-13 12:53:59 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 13:44:41 (GMT)
commit4a9c54250492a1a8c5fa62885c7f3dcd3eefb76b (patch)
treefebd7f93b1dc56c016ff9aa04bf786abf26f655b /drivers/media/v4l2-core/v4l2-fh.c
parente2f95f88106f32b1e82898d0a2a757366e2cbc5f (diff)
downloadlinux-4a9c54250492a1a8c5fa62885c7f3dcd3eefb76b.tar.xz
gspca: konica: add missing endpoint sanity check
commit aa58fedb8c7b6cf2f05941d238495f9e2f29655c upstream. Make sure to check the number of endpoints to avoid accessing memory beyond the endpoint array should a device lack the expected endpoints. Note that, as far as I can tell, the gspca framework has already made sure there is at least one endpoint in the current alternate setting so there should be no risk for a NULL-pointer dereference here. Fixes: b517af722860 ("V4L/DVB: gspca_konica: New gspca subdriver for konica chipset using cams") Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-fh.c')
0 files changed, 0 insertions, 0 deletions