Skip to content

Commit

Permalink
fix(driver): fix build of kmod on linux 6.10.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed May 30, 2024
1 parent 1d31ad6 commit b52aec8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,8 +1649,10 @@ static inline int drop_nostate_event(ppm_event_code event_type,
if (close_fd < 0 || close_fd >= fdt->max_fds ||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0))
!FD_ISSET(close_fd, fdt->open_fds)
#else
#elif (LINUX_VERSION_CODE < KERNEL_VERSION(6, 10, 0))
!fd_is_open(close_fd, fdt)
#else
!test_bit(close_fd, fdt->open_fds)
#endif
) {
drop = true;
Expand Down

0 comments on commit b52aec8

Please sign in to comment.