Commit 5c4b6421 authored by Ronnie Sahlberg's avatar Ronnie Sahlberg Committed by Steve French

cifs: fix uninitialized variable in smb3_fs_context_parse_param

Addresses an issue noted by the kernel test robot
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
parent 1cb6c3d6
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment