diff options
author | Qasim Ijaz <qasdev00@gmail.com> | 2025-06-06 19:49:59 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-06-10 21:10:27 +0200 |
commit | 85a720f4337f0ddf1603c8b75a8f1ffbbe022ef9 (patch) | |
tree | a7a39af1eda16dff26cc3b8b3d02f8a97e9e6a98 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1a19ae437ca5d5c7d9ec2678946fb339b1c706bf (diff) |
HID: wacom: fix kobject reference count leak
When sysfs_create_files() fails in wacom_initialize_remotes() the error
is returned and the cleanup action will not have been registered yet.
As a result the kobject???s refcount is never dropped, so the
kobject can never be freed leading to a reference leak.
Fix this by calling kobject_put() before returning.
Fixes: 83e6b40e2de6 ("HID: wacom: EKR: have the wacom resources dynamically allocated")
Acked-by: Ping Cheng <ping.cheng@wacom.com>
Cc: stable@vger.kernel.org
Signed-off-by: Qasim Ijaz <qasdev00@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions