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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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) {