diff options
| author | 2017-03-13 09:53:59 -0300 | |
|---|---|---|
| committer | 2017-04-05 15:07:31 -0300 | |
| commit | aa58fedb8c7b6cf2f05941d238495f9e2f29655c (patch) | |
| tree | df9ba8889eb163b68126878e641b28c2ace1715f /scripts/objdiff | |
| parent | [media] atmel-isc: fix off-by-one comparison and out of bounds read issue (diff) | |
[media] gspca: konica: add missing endpoint sanity check
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: stable <stable@vger.kernel.org> # 2.6.37
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>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
