]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/livepatch: fix norevert test hook setup typo
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 27 Feb 2024 12:58:21 +0000 (13:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 27 Feb 2024 12:58:21 +0000 (13:58 +0100)
The test code has a typo in using LIVEPATCH_APPLY_HOOK() instead of
LIVEPATCH_REVERT_HOOK().

Fixes: 6047104c3ccc ('livepatch: Add per-function applied/reverted state tracking marker')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
master commit: f0622dd4fd6ae6ddb523a45d89ed9b8f3a9a8f36
master date: 2024-02-26 10:13:46 +0100

xen/test/livepatch/xen_action_hooks_norevert.c

index 3e21ade6abfc9b74dab07c578dc08009b1e35ca0..c173855192636a09825df9229477ceb1726c213a 100644 (file)
@@ -120,7 +120,7 @@ static void post_revert_hook(livepatch_payload_t *payload)
     printk(KERN_DEBUG "%s: Hook done.\n", __func__);
 }
 
-LIVEPATCH_APPLY_HOOK(revert_hook);
+LIVEPATCH_REVERT_HOOK(revert_hook);
 
 LIVEPATCH_PREAPPLY_HOOK(pre_apply_hook);
 LIVEPATCH_POSTAPPLY_HOOK(post_apply_hook);