summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-10-11 18:33:37 -0400
committerTejun Heo <tj@kernel.org>2026-10-12 07:52:04 -1000
commit61c77b323c8da2ba6a35a4e50019e5f31f8729b8 (patch)
tree1fe3675c4b299a7b7e64e19e4527c22dc57b02fc /tools/lib/python
parentd5632ae015028376668ef29e3a24c099611a55c7 (diff)
downloadlinux-next-61c77b323c8da2ba6a35a4e50019e5f31f8729b8.tar.gz
linux-next-61c77b323c8da2ba6a35a4e50019e5f31f8729b8.zip
selftests: memcg: Don't close an uninitialized fd
test_memcg_inotify_delete_file() and test_memcg_inotify_delete_dir() jump to cleanup before the inotify fd is created when cg_name() or cg_create() fails, and cleanup then closes whatever fd holds: test_memcontrol.c:1685:6: warning: variable 'fd' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] Initialize fd to -1. Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org> Acked-by: Michal Koutný <mkoutny@suse.com> Reviewed-by: T.J. Mercier <tjmercier@google.com> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions