Skip to content

Commit

Permalink
livepatch-patch-hook: add RHEL immediate check
Browse files Browse the repository at this point in the history
The 'immediate' flag removal is going to be backported to RHEL 7.
Adjust the check accordingly.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
  • Loading branch information
jpoimboe committed May 29, 2018
1 parent ba5f3a9 commit a3ee369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kmod/patch/livepatch-patch-hook.c
Expand Up @@ -49,7 +49,8 @@

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0) && \
LINUX_VERSION_CODE <= KERNEL_VERSION(4, 15, 0)) || \
defined(RHEL_RELEASE_CODE)
(defined(RHEL_RELEASE_CODE) && \
RHEL_RELEASE_CODE <= RHEL_RELEASE_VERSION(7, 5))
#define HAVE_IMMEDIATE
#endif

Expand Down

0 comments on commit a3ee369

Please sign in to comment.