diff --git a/kmod/patch/livepatch-patch-hook.c b/kmod/patch/livepatch-patch-hook.c index 6c89ff8..d27dc1a 100644 --- a/kmod/patch/livepatch-patch-hook.c +++ b/kmod/patch/livepatch-patch-hook.c @@ -47,7 +47,8 @@ #define HAVE_SYMPOS #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) || \ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) && \ + LINUX_VERSION_CODE <= KERNEL_VERSION(4, 15, 0)) || \ defined(RHEL_RELEASE_CODE) #define HAVE_IMMEDIATE #endif