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>
This commit is contained in:
parent
1cb6c3d62c
commit
5c4b642141
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user