From b407defcd16f6a8a49ed0f66d4902eb0bc1b2021 Mon Sep 17 00:00:00 2001 From: Zhipeng Xie Date: Fri, 2 Nov 2018 17:24:42 +0000 Subject: [PATCH 04/21] livepatch, fix: use THIS modname as the name of ddebug_table We just want a unique name for every module, so put a _ddebug in this file as the first of _ddebug array. Then remove path will work correctly, use the mod->name. Suggested-by: Li Bin Signed-off-by: Zhou Chengming Signed-off-by: Zhipeng Xie --- kmod/patch/livepatch-patch-hook.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kmod/patch/livepatch-patch-hook.c b/kmod/patch/livepatch-patch-hook.c index e12fd50..613d037 100644 --- a/kmod/patch/livepatch-patch-hook.c +++ b/kmod/patch/livepatch-patch-hook.c @@ -473,6 +473,7 @@ out: static void __exit patch_exit(void) { + pr_debug("make THIS modname first\n"); #ifndef HAVE_SIMPLE_ENABLE WARN_ON(klp_unregister_patch(lpatch)); #endif -- 2.18.1