diff options
| author | Ma Ke <make24@iscas.ac.cn> | 2025-11-16 10:44:11 +0800 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-05-12 11:49:30 +0530 |
| commit | 108d7f951271cbd36ca36efc5e5d106966f5180c (patch) | |
| tree | 4ae2cfa3a245dfe32537d80db0cd286cc67a4e36 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | acd1e47db03d4b528fd5efb8565dd0de1c79f62a (diff) | |
| download | linux-108d7f951271cbd36ca36efc5e5d106966f5180c.tar.gz linux-108d7f951271cbd36ca36efc5e5d106966f5180c.zip | |
powerpc/warp: Fix error handling in pika_dtm_thread
pika_dtm_thread() acquires client through of_find_i2c_device_by_node()
but fails to release it in error handling path. This could result in a
reference count leak, preventing proper cleanup and potentially
leading to resource exhaustion. Add put_device() to release the
reference in the error handling path.
Found by code review.
Cc: stable@vger.kernel.org
Fixes: 3984114f0562 ("powerpc/warp: Platform fix for i2c change")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20251116024411.21968-1-make24@iscas.ac.cn
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
