diff options
| author | Henry Martin <[email protected]> | 2025-04-01 09:48:53 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2025-04-24 10:12:16 +0000 |
| commit | bd07f751208ba190f9b0db5e5b7f35d5bb4a8a1e (patch) | |
| tree | 011de96c075befbb0a3824379e8e17a6b575eec2 /tools/perf/scripts/python | |
| parent | HID: wacom: fix memory leak on size mismatch in wacom_wac_queue_flush() (diff) | |
| download | kernel-bd07f751208ba190f9b0db5e5b7f35d5bb4a8a1e.tar.gz kernel-bd07f751208ba190f9b0db5e5b7f35d5bb4a8a1e.zip | |
HID: uclogic: Add NULL check in uclogic_input_configured()
devm_kasprintf() returns NULL when memory allocation fails. Currently,
uclogic_input_configured() does not check for this case, which results
in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
Fixes: dd613a4e45f8 ("HID: uclogic: Correct devm device reference for hidinput input_dev name")
Signed-off-by: Henry Martin <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
