summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorQasim Ijaz <qasdev00@gmail.com>2025-06-06 21:49:57 +0300
committerJiri Kosina <jkosina@suse.com>2025-06-10 22:10:27 +0300
commit5ae416c5b1e2e816aee7b3fc8347adf70afabb4c (patch)
tree44c381379e6a302fbb770c78db9ec6ae7f094158 /tools/perf/scripts/python/exported-sql-viewer.py
parent2043ae9019e0f75c7785048230586c3f3ca0a2a4 (diff)
downloadlinux-5ae416c5b1e2e816aee7b3fc8347adf70afabb4c.tar.xz
HID: wacom: fix memory leak on kobject creation failure
During wacom_initialize_remotes() a fifo buffer is allocated with kfifo_alloc() and later a cleanup action is registered during devm_add_action_or_reset() to clean it up. However if the code fails to create a kobject and register it with sysfs the code simply returns -ENOMEM before the cleanup action is registered leading to a memory leak. Fix this by ensuring the fifo is freed when the kobject creation and registration process fails. Fixes: 83e6b40e2de6 ("HID: wacom: EKR: have the wacom resources dynamically allocated") Reviewed-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