Re: [PATCH v2] ext4: fix memory leak in ext4_fill_super

From
Theodore Ts'o <tytso@mit.edu>
Date
2021-06-17 01:15:45
Also in
lkml
Reply to
Pavel Skripkin, 2021-04-30
On Fri, Apr 30, 2021 at 09:50:46PM +0300, Pavel Skripkin wrote:
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: <redacted>
Signed-off-by: Pavel Skripkin <redacted>
Applied, thanks!  (And apologies for the delay)

						- Ted
Thread (15 messages) 15 messages, 3 authors, last reply 2021-06-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help