diff options
| author | Masami Ichikawa <masami256@gmail.com> | 2025-09-21 14:31:02 +0900 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2025-10-31 09:57:10 +0100 |
| commit | 53f731f5bba0cf03b751ccceb98b82fadc9ccd1e (patch) | |
| tree | 7f1a6388bd663da1beea3be1de7217aefd2e977d /tools/lib/python/kdoc/kdoc_re.py | |
| parent | 4d3a13afa8b64dc49293b3eab3e7beac11072c12 (diff) | |
HID: hid-ntrig: Prevent memory leak in ntrig_report_version()
Use a scope-based cleanup helper for the buffer allocated with kmalloc()
in ntrig_report_version() to simplify the cleanup logic and prevent
memory leaks (specifically the !hid_is_usb()-case one).
[jkosina@suse.com: elaborate on the actual existing leak]
Fixes: 185c926283da ("HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version()")
Signed-off-by: Masami Ichikawa <masami256@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
