From 81f2e7abab6005f5fb49e26171c5ef0c10213a7f Mon Sep 17 00:00:00 2001 From: derry Date: Mon, 28 Jun 2021 12:51:00 +0000 Subject: [PATCH] Low version kernel supports set_fs 5.7- --- oaf/src/app_filter.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oaf/src/app_filter.c b/oaf/src/app_filter.c index 6f081b16..cf402613 100755 --- a/oaf/src/app_filter.c +++ b/oaf/src/app_filter.c @@ -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); }