aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2019-10-18 18:30:49 +0100
committerMark Brown <broonie@kernel.org>2019-10-18 18:30:49 +0100
commit112d6212c80a1c560757520bd822a41c0ad15c2c (patch)
tree051580f1a55aa8d1b59120f21767a624d0291dbc /kernel/livepatch
parentspi: Fix SPI_CS_HIGH setting when using native and GPIO CS (diff)
parentLinux 5.4-rc3 (diff)
Merge tag 'v5.4-rc3' into spi-5.4
Linux 5.4-rc3
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index c4ce08f43bd6..ab4a4606d19b 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -1175,6 +1175,7 @@ err:
pr_warn("patch '%s' failed for module '%s', refusing to load module '%s'\n",
patch->mod->name, obj->mod->name, obj->mod->name);
mod->klp_alive = false;
+ obj->mod = NULL;
klp_cleanup_module_patches_limited(mod, patch);
mutex_unlock(&klp_mutex);