summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-09-30 19:39:23 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2023-09-30 19:39:23 +0300
commitba77f7a63f4e4d4ffa5ad8c6665a104822992538 (patch)
tree5aab762b783464ff6258b2663d257d87e0ebfa59
parent9f3ebbef746f89f860a90ced99a359202ea86fde (diff)
parente6e43b8aa7cd3c3af686caf0c2e11819a886d705 (diff)
downloadlinux-ba77f7a63f4e4d4ffa5ad8c6665a104822992538.tar.xz
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
-rw-r--r--fs/smb/client/fs_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c
index e45ce31bbda7..a3493da12ad1 100644
--- a/fs/smb/client/fs_context.c
+++ b/fs/smb/client/fs_context.c
@@ -1541,6 +1541,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
cifs_parse_mount_err:
kfree_sensitive(ctx->password);
+ ctx->password = NULL;
return -EINVAL;
}