Re: [RFC PATCH 1/5] livepatch: Fix kobject memleak

From: Greg Kroah-Hartman
Date: Thu May 02 2019 - 03:22:44 EST

On Thu, May 02, 2019 at 12:31:38PM +1000, 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: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>