summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorYe Bin <yebin10@huawei.com>2024-10-11 10:40:25 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2025-02-05 17:48:40 +0300
commit1d1a7e2525491f56901f5f63370a0775768044b8 (patch)
tree194832f7c4f6e42d5f0cfa9650017deb127da34f /tools/perf/scripts/python/libxed.py
parentc5a396295370fa99ddc0c4c4d25f8a3ee4f013d8 (diff)
downloadlinux-1d1a7e2525491f56901f5f63370a0775768044b8.tar.xz
fs/ntfs3: Fix 'proc_info_root' leak when init ntfs failed
There's a issue as follows: proc_dir_entry 'fs/ntfs3' already registered WARNING: CPU: 3 PID: 9788 at fs/proc/generic.c:375 proc_register+0x418/0x590 Modules linked in: ntfs3(E+) Call Trace: <TASK> _proc_mkdir+0x165/0x200 init_ntfs_fs+0x36/0xf90 [ntfs3] do_one_initcall+0x115/0x6c0 do_init_module+0x253/0x760 load_module+0x55f2/0x6c80 init_module_from_file+0xd2/0x130 __x64_sys_finit_module+0xbf/0x130 do_syscall_64+0x72/0x1c0 Above issue happens as missing destroy 'proc_info_root' when error happens after create 'proc_info_root' in init_ntfs_fs(). So destroy 'proc_info_root' in error path in init_ntfs_fs(). Fixes: 7832e123490a ("fs/ntfs3: Add support /proc/fs/ntfs3/<dev>/volinfo and /proc/fs/ntfs3/<dev>/label") Signed-off-by: Ye Bin <yebin10@huawei.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions