[PATCH] powerpc: Fix kobject memleak
Tyrel Datwyler
tyreld at linux.vnet.ibm.com
Wed May 1 06:37:44 AEST 2019
On 04/29/2019 06:09 PM, Tobin C. Harding wrote:
> Currently error return from kobject_init_and_add() is not followed by a
> call to kobject_put(). This means there is a memory leak.
>
> Add call to kobject_put() in error path of kobject_init_and_add().
>
> Signed-off-by: Tobin C. Harding <tobin at kernel.org>
> ---
Reviewed-by: Tyrel Datwyler <tyreld at linux.ibm.com>
More information about the Linuxppc-dev
mailing list