From 858cc1f1ef2565d6ffa539550fc13af7e62863e4 Mon Sep 17 00:00:00 2001 From: Zhipeng Xie Date: Fri, 2 Nov 2018 17:24:42 +0000 Subject: [PATCH 1005/1015] 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kmod/patch/livepatch-patch-hook.c b/kmod/patch/livepatch-patch-hook.c index e59a377..2c0cadd 100644 --- a/kmod/patch/livepatch-patch-hook.c +++ b/kmod/patch/livepatch-patch-hook.c @@ -452,6 +452,7 @@ out: static void __exit patch_exit(void) { + pr_debug("make THIS modname first\n"); WARN_ON(klp_unregister_patch(lpatch)); } -- 1.7.5.4