kernel: fix compatibility with 5.10

Signed-off-by: fc5b87cf <rissu.ntk@gmail.com>
This commit is contained in:
fc5b87cf
2025-11-17 22:12:23 +07:00
committed by ShirkNeko
parent 83db28b262
commit dc3de58aa6

View File

@@ -80,7 +80,7 @@ extern struct key *init_session_keyring;
static inline int do_close_fd(unsigned int fd) static inline int do_close_fd(unsigned int fd)
{ {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
return close_fd(fd); return close_fd(fd);
#else #else
return __close_fd(current->files, fd); return __close_fd(current->files, fd);