Low version kernel supports set_fs 5.7-

This commit is contained in:
derry 2021-06-28 12:51:00 +00:00
parent 2474c46bbc
commit 81f2e7abab

View File

@ -311,7 +311,11 @@ void load_feature_buf_from_file(char **config_buf)
#else
vfs_read(fp, *config_buf, size, &(fp->f_pos));
#endif
/// set_fs(fs);
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5,7,19)
set_fs(fs);
#endif
filp_close(fp, NULL);
}