From c8f2b9f9f212b975a1900781e17ac99cc747e363 Mon Sep 17 00:00:00 2001 From: waterwin Date: Thu, 18 May 2023 08:57:19 +0000 Subject: [PATCH] sharefs mount panic when mount options is invalid Signed-off-by: waterwin --- fs/sharefs/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/sharefs/super.c b/fs/sharefs/super.c index e130126496a6..cdbae59680fa 100644 --- a/fs/sharefs/super.c +++ b/fs/sharefs/super.c @@ -13,10 +13,12 @@ enum { OPT_USER_ID, + OPT_ERR, }; static match_table_t sharefs_tokens = { { OPT_USER_ID, "user_id=%s"}, + { OPT_ERR, NULL }, }; int sharefs_parse_options(struct sharefs_sb_info *sbi, const char *data) -- Gitee