Skip to content

livepatch: Fix usage of kobject_init_and_add()

Tobin C. Harding lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2livepatch: Fix kobject memleakkernel/livepatch/core.c+9 -36 replies
2/2livepatch: Use correct kobject cleanup functionkernel/livepatch/core.c+3 -55 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGreg Kroah-Hartman
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] livepatch: Fix usage of kobject_init_and_add()

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(-)
Signature · 1 line
2.21.0