1
0
Fork 0

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>
zero-sugar-mainline-defconfig
Ronnie Sahlberg 2020-12-14 16:40:27 +10:00 committed by Steve French
parent 1cb6c3d62c
commit 5c4b642141
1 changed files with 3 additions and 1 deletions

View File

@ -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) {