Skip to content

Commit

Permalink
Low version kernel supports set_fs 5.7-
Browse files Browse the repository at this point in the history
  • Loading branch information
derry committed Jun 28, 2021
1 parent 2474c46 commit 81f2e7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion oaf/src/app_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 81f2e7a

Please sign in to comment.