diff options
author | Petr Mladek <[email protected]> | 2019-05-03 15:26:24 +0200 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2019-05-03 21:11:22 +0200 |
commit | 4d141ab3416d90f87775f5dee725efdf40110a8f (patch) | |
tree | 656f94323db25996373b1bd775147f709f2cb836 /tools/perf/scripts/python | |
parent | 31adf2308f33dcae59009019675224be0978bc70 (diff) |
livepatch: Remove custom kobject state handling
kobject_init() always succeeds and sets the reference count to 1.
It allows to always free the structures via kobject_put() and
the related release callback.
Note that the custom kobject state handling was used only
because we did not know that kobject_put() can and actually
should get called even when kobject_init_and_add() fails.
The patch should not change the existing behavior.
Suggested-by: "Tobin C. Harding" <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Reviewed-by: Kamalesh Babulal <[email protected]>
Acked-by: Joe Lawrence <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions