[PATCH 0/2] livepatch: Fix usage of kobject_init_and_add()
From: Tobin C. Harding
Date: Mon Apr 29 2019 - 20:16:25 EST
Hi,
Currently there are a few places in kernel/livepatch/ which do not
correctly use kobject_init_and_add().
An error return from kobject_init_and_add() requires a call to
kobject_put().
The cleanup function after a successful call to kobject_init_and_add()
is kobject_del().
This set is part of an effort to check/fix all callsites of
kobject_init_and_add().
This set fixes all callsites under kernel/livepatch/
thanks,
Tobin.
Tobin C. Harding (2):
livepatch: Fix kobject memleak
livepatch: Use correct kobject cleanup function
kernel/livepatch/core.c | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
--
2.21.0