livepatch: Fix usage of kobject_init_and_add()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | livepatch: Fix kobject memleakkernel/ | +9 | 6 replies | |
| 2/2 | livepatch: Use correct kobject cleanup functionkernel/ | +3 | 5 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Greg Kroah-Hartman |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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