Make use of the symbolic name for the #CP vector number instead of hard-coding its value. Signed-off-by: Mathias Krause <minipli@xxxxxxxxxxxxxx> --- x86/cet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/cet.c b/x86/cet.c index c01dd89d9082..42d2b1fc043f 100644 --- a/x86/cet.c +++ b/x86/cet.c @@ -83,7 +83,7 @@ int main(int ac, char **av) } setup_vm(); - handle_exception(21, handle_cp); + handle_exception(CP_VECTOR, handle_cp); /* Allocate one page for shadow-stack. */ shstk_virt = alloc_vpage(); -- 2.39.2