kernel: fix compatibility with 5.10
Signed-off-by: fc5b87cf <rissu.ntk@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user