Re: [PATCH] kobject: Improve doc clarity kobject_init_and_add()

2019-04-29 Thread Rafael J. Wysocki
On Sun, Apr 28, 2019 at 1:57 AM Tobin C. Harding wrote: > > Function kobject_init_and_add() is currently misused in a number of > places in the kernel. On error return kobject_put() must be called but > is at times not. > > Make the function documentation more explicit about calling > kobject_put

[PATCH] kobject: Improve doc clarity kobject_init_and_add()

2019-04-27 Thread Tobin C. Harding
Function kobject_init_and_add() is currently misused in a number of places in the kernel. On error return kobject_put() must be called but is at times not. Make the function documentation more explicit about calling kobject_put() in the error path. Signed-off-by: Tobin C. Harding --- lib/kobje