android_kernel_motorola_sm6375/kernel/livepatch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Petr Mladek 4d141ab341 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" <tobin@kernel.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2019-05-03 21:11:22 +02:00
..
core.c livepatch: Remove custom kobject state handling 2019-05-03 21:11:22 +02:00
core.h livepatch: Introduce klp_for_each_patch macro 2019-02-06 10:49:30 +01:00
Kconfig
Makefile
patch.c
patch.h
shadow.c
transition.c Merge branch 'for-5.1/atomic-replace' into for-linus 2019-03-05 15:56:59 +01:00
transition.h livepatch: Remove signal sysfs attribute 2019-01-16 22:09:33 +01:00