projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
5e6ded2
)
Merge branch 'for-5.18/selftests-fixes' into for-linus
author
Petr Mladek
<pmladek@suse.com>
Mon, 28 Mar 2022 08:56:22 +0000
(10:56 +0200)
committer
Petr Mladek
<pmladek@suse.com>
Mon, 28 Mar 2022 08:56:22 +0000
(10:56 +0200)
kernel/livepatch/transition.c
patch
|
blob
|
history
diff --git
a/kernel/livepatch/transition.c
b/kernel/livepatch/transition.c
index
5683ac0
..
77ef45a
100644
(file)
--- a/
kernel/livepatch/transition.c
+++ b/
kernel/livepatch/transition.c
@@
-641,6
+641,13
@@
void klp_force_transition(void)
for_each_possible_cpu(cpu)
klp_update_patch_state(idle_task(cpu));
- klp_for_each_patch(patch)
- patch->forced = true;
+ /* Set forced flag for patches being removed. */
+ if (klp_target_state == KLP_UNPATCHED)
+ klp_transition_patch->forced = true;
+ else if (klp_transition_patch->replace) {
+ klp_for_each_patch(patch) {
+ if (patch != klp_transition_patch)
+ patch->forced = true;
+ }
+ }
}