mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 12:26:11 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue