Re: [PATCH] blkcg: Fix memory leak in blkg_conf_prep()

From: Markus Elfring
Date: Fri May 15 2020 - 11:08:55 EST


â
> new_blkg = blkg_alloc(pos, q, GFP_KERNEL);
â

I suggest to omit the source code quotation from the change description.


> if calling blkg_lookup_check() failed, at the IS_ERR block,
> the new_blkg should be free before goto lable fail_unlock
> in blkg_conf_prep() function.

How do you think about a wording variant like the following?

If a call of the function âblkg_lookup_checkâ failed,
release the previously allocated block group before jumping
to the target âfail_unlockâ in the implementation of
the function âblkg_conf_prepâ.


Would you like to add the tag âFixesâ to the commit message?

Regards,
Markus