diff options
| author | Johan Hovold <johan@kernel.org> | 2017-03-16 11:35:12 -0700 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2017-06-17 15:54:16 +0200 |
| commit | 545d25ae7859c7a136e29826c53ab95e0d96a6fc (patch) | |
| tree | 80da1421c3c3514e2994d428acfca2cf9558a090 /include/linux | |
| parent | 6f7921c1b661ad40ce9903d3774853b736251638 (diff) | |
Input: cm109 - validate number of endpoints before using them
commit ac2ee9ba953afe88f7a673e1c0c839227b1d7891 upstream.
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>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
