From: Ronnie Sahlberg Date: Mon, 14 Dec 2020 06:40:27 +0000 (+1000) Subject: cifs: fix uninitialized variable in smb3_fs_context_parse_param X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5c4b642141eb3576213ab59d06ba12e1fa989046;p=linux.git cifs: fix uninitialized variable in smb3_fs_context_parse_param Addresses an issue noted by the kernel test robot Reported-by: kernel test robot Signed-off-by: Steve French Signed-off-by: Ronnie Sahlberg --- diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index a309e494577c8..ca745fa6c4a15 100644 --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -726,8 +726,10 @@ static int smb3_fs_context_parse_param(struct fs_context *fc, * we will need special handling of them. */ if (param->type == fs_value_is_string && param->string[0] == 0) { - if (!strcmp("pass", param->key) || !strcmp("password", param->key)) + if (!strcmp("pass", param->key) || !strcmp("password", param->key)) { skip_parsing = true; + opt = Opt_pass; + } } if (!skip_parsing) {