Commit ba340d7
Input: hanwang - 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: bba5394 ("Input: add support for Hanwang tablets")
Signed-off-by: Johan Hovold <[email protected]>
Cc: [email protected] # 2.6.37
Signed-off-by: Dmitry Torokhov <[email protected]>1 parent 5cc4a1a commit ba340d7
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
343 | 346 | | |
344 | 347 | | |
345 | 348 | | |
| |||
0 commit comments