Re: [PATCH] powerpc: Fix kobject memleak
From: Tyrel Datwyler
Date: Tue Apr 30 2019 - 16:38:02 EST
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@xxxxxxxxxx>
> ---
Reviewed-by: Tyrel Datwyler <tyreld@xxxxxxxxxxxxx>