Home
last modified time | relevance | path

Searched hist:ac2ee9ba953afe88f7a673e1c0c839227b1d7891 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/input/misc/
H A Dcm109.cdiff ac2ee9ba953afe88f7a673e1c0c839227b1d7891 Thu Mar 16 13:35:12 CDT 2017 Johan Hovold <johan@kernel.org> Input: cm109 - validate number of endpoints before using them

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer should a malicious device lack endpoints.

Fixes: c04148f915e5 ("Input: add driver for USB VoIP phones with CM109...")
Signed-off-by: Johan Hovold <johan@kernel.org>
Cc: stable@vger.kernel.org # 2.6.28
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>