Messages in this thread | | | Date | Tue, 30 Apr 2019 10:44:41 +0200 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH 2/3] bridge: Use correct cleanup function |
| |
On Tue, Apr 30, 2019 at 10:28:16AM +1000, Tobin C. Harding wrote: > The correct cleanup function if a call to kobject_init_and_add() has > returned _successfully_ is kobject_del(). kobject_put() is used if the > call to kobject_init_and_add() fails. kobject_del() calls kobject_put(). > > Use correct cleanup function in error path. > > Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| |