Commit 4e77339
committed
4.18: add WACOM_HID_REPORT_RAW_EVENT_BUFSIZE flag for API update
In kernel ver 7.0.8, hid_report_raw_event() was updated to accept both
the buffer size and the data size arguments to mitigate potential OOB issues.
This commit adds a check and flag set in configure.ac for this change.
It also adds #ifdef checks in 4.18/wacom_sys.c to handle the flag and safely
pass the extra parameter on newer kernels, while preserving the legacy
signature for older environments.
Signed-off-by: Kori <pedarkasy@gmail.com>1 parent ce6a46c commit 4e77339
2 files changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| 346 | + | |
342 | 347 | | |
343 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
344 | 353 | | |
345 | 354 | | |
346 | 355 | | |
| |||
400 | 409 | | |
401 | 410 | | |
402 | 411 | | |
| 412 | + | |
403 | 413 | | |
404 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
405 | 419 | | |
406 | 420 | | |
407 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
306 | 335 | | |
307 | 336 | | |
308 | 337 | | |
| |||
0 commit comments