diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2020-12-14 09:40:27 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-12-14 22:40:43 +0300 |
commit | 5c4b642141eb3576213ab59d06ba12e1fa989046 (patch) | |
tree | eaa45efd43aeb45b1ea40173c73db8e488443efe /fs/cifs | |
parent | 1cb6c3d62ca9cfdb103470e7eb60c332475b186f (diff) | |
download | linux-5c4b642141eb3576213ab59d06ba12e1fa989046.tar.xz |
cifs: fix uninitialized variable in smb3_fs_context_parse_param
Addresses an issue noted by the kernel test robot
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/fs_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index a309e494577c..ca745fa6c4a1 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) { |