diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-04-30 21:50:46 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-06-17 17:53:19 +0300 |
commit | 618f003199c6188e01472b03cdbba227f1dc5f24 (patch) | |
tree | 6f73f2324cae9f4d4c58606b793d8261273723a8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 1fc57ca5a2cd26e0a526e5eb2b0fc0c054117a5b (diff) | |
download | linux-618f003199c6188e01472b03cdbba227f1dc5f24.tar.xz |
ext4: fix memory leak in ext4_fill_super
static int kthread(void *_create) will return -ENOMEM
or -EINTR in case of internal failure or
kthread_stop() call happens before threadfn call.
To prevent fancy error checking and make code
more straightforward we moved all cleanup code out
of kmmpd threadfn.
Also, dropped struct mmpd_data at all. Now struct super_block
is a threadfn data and struct buffer_head embedded into
struct ext4_sb_info.
Reported-by: syzbot+d9e482e303930fa4f6ff@syzkaller.appspotmail.com
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Link: https://lore.kernel.org/r/20210430185046.15742-1-paskripkin@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions