mirror of
https://github.com/dynup/kpatch
synced 2024-12-22 21:22:07 +00:00
kmod/patch: check for RHEL8 when setting HAVE_SIMPLE_ENABLE
Make sure we don't set HAVE_SIMPLE_ENABLE on rhel8 before rhel8.2
Fixes: b913b4b
("livepatch-patch-hook: skip klp_(un)register_patch() for RHEL-7.8+ kernels")
Fixes: #1031
Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
6f5edcd573
commit
36120b9b08
@ -65,7 +65,9 @@
|
||||
#endif
|
||||
|
||||
#ifdef RHEL_RELEASE_CODE
|
||||
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 8)
|
||||
# if (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 8) && \
|
||||
RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8, 0)) || \
|
||||
RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 2)
|
||||
# define HAVE_SIMPLE_ENABLE
|
||||
# endif
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user