Re: [PATCH] md: Fix failed allocation of md_register_thread

2019-03-12 Thread Song Liu
On Thu, Mar 7, 2019 at 7:13 PM Guoqing Jiang wrote: > > > > On 3/5/19 6:48 AM, Aditya Pakki wrote: > > mddev->sync_thread can be set to NULL on kzalloc failure downstream. > > The patch checks for such a scenario and frees allocated resources. > > > > Signed-off-by: Aditya Pakki Applied to

Re: [PATCH] md: Fix failed allocation of md_register_thread

2019-03-07 Thread Guoqing Jiang
On 3/5/19 6:48 AM, Aditya Pakki wrote: mddev->sync_thread can be set to NULL on kzalloc failure downstream. The patch checks for such a scenario and frees allocated resources. Signed-off-by: Aditya Pakki --- drivers/md/raid10.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] md: Fix failed allocation of md_register_thread

2019-03-06 Thread Song Liu
On Mon, Mar 4, 2019 at 2:50 PM Aditya Pakki wrote: > > mddev->sync_thread can be set to NULL on kzalloc failure downstream. > The patch checks for such a scenario and frees allocated resources. > > Signed-off-by: Aditya Pakki This looks good. Could you please add a "Fixed:" tag? Thanks, Song

[PATCH] md: Fix failed allocation of md_register_thread

2019-03-04 Thread Aditya Pakki
mddev->sync_thread can be set to NULL on kzalloc failure downstream. The patch checks for such a scenario and frees allocated resources. Signed-off-by: Aditya Pakki --- drivers/md/raid10.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index