summaryrefslogtreecommitdiffstats
path: root/samples/livepatch/livepatch-sample.c
diff options
context:
space:
mode:
authorJessica Yu2016-03-23 01:03:17 +0100
committerJiri Kosina2016-04-01 15:00:11 +0200
commitf31e0960f395df0c9197de53674365e2a28a129b (patch)
tree1d2505d29ee027304baf58075e2989b6d484b65c /samples/livepatch/livepatch-sample.c
parentmodule: preserve Elf information for livepatch modules (diff)
downloadkernel-qcow2-linux-f31e0960f395df0c9197de53674365e2a28a129b.tar.gz
kernel-qcow2-linux-f31e0960f395df0c9197de53674365e2a28a129b.tar.xz
kernel-qcow2-linux-f31e0960f395df0c9197de53674365e2a28a129b.zip
module: s390: keep mod_arch_specific for livepatch modules
Livepatch needs to utilize the symbol information contained in the mod_arch_specific struct in order to be able to call the s390 apply_relocate_add() function to apply relocations. Keep a reference to syminfo if the module is a livepatch module. Remove the redundant vfree() in module_finalize() since module_arch_freeing_init() (which also frees those structures) is called in do_init_module(). If the module isn't a livepatch module, we free the structures in module_arch_freeing_init() as usual. Signed-off-by: Jessica Yu <jeyu@redhat.com> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'samples/livepatch/livepatch-sample.c')
0 files changed, 0 insertions, 0 deletions