Skip to content

Commit

Permalink
Fix compilation on RH9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Nov 18, 2024
1 parent ae95da3 commit 9ac5898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/pf_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -5790,7 +5790,8 @@ static int do_memory_mmap(struct vm_area_struct *vma, unsigned long start_off, u
unsigned long start;

/* we do not want to have this area swapped out, lock it */
#if(LINUX_VERSION_CODE < KERNEL_VERSION(6,3,0))
#if(LINUX_VERSION_CODE < KERNEL_VERSION(6,3,0) && \
!(defined(REDHAT_PATCHED_KERNEL) && RHEL_MAJOR == 9 && RHEL_MINOR == 5))
vma->vm_flags |= flags;
#else
vm_flags_set(vma, flags);
Expand Down

0 comments on commit 9ac5898

Please sign in to comment.