Commit ba77f7a6 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag '6.6-rc3-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fix from Steve French:
 "Fix for password freeing potential oops (also for stable)"

* tag '6.6-rc3-smb3-client-fix' of git://git.samba.org/sfrench/cifs-2.6:
  fs/smb/client: Reset password pointer to NULL
parents 9f3ebbef e6e43b8a
...@@ -1541,6 +1541,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc, ...@@ -1541,6 +1541,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
cifs_parse_mount_err: cifs_parse_mount_err:
kfree_sensitive(ctx->password); kfree_sensitive(ctx->password);
ctx->password = NULL;
return -EINVAL; return -EINVAL;
} }
......
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