Re: [PATCH] blkcg:Fix memory leaks in blkg_conf_prep()
From: Tejun Heo
Date: Tue May 26 2020 - 13:24:55 EST
On Mon, May 18, 2020 at 08:36:06PM +0800, Wu Bo wrote:
> From: Wu Bo <wubo40@xxxxxxxxxx>
>
> If a call of the function blkg_lookup_check() failed,
> we should be release the previously allocated block group
> before jumping to the lable 'fail_unlock' in the implementation of
> the function blkg_conf_prep().
>
> Suggested-by: Markus Elfring <Markus.Elfring@xxxxxx>
> Signed-off-by: Wu Bo <wubo40@xxxxxxxxxx>
Acked-by: Tejun Heo <tj@xxxxxxxxxx>
Thanks.
--
tejun