diff options
author | Quang Le <[email protected]> | 2023-09-29 00:44:13 +0700 |
---|---|---|
committer | Steve French <[email protected]> | 2023-09-28 14:49:51 -0500 |
commit | e6e43b8aa7cd3c3af686caf0c2e11819a886d705 (patch) | |
tree | 49a09c3754101d8d3225a8c2345a029106a286e2 | |
parent | 6465e260f48790807eef06b583b38ca9789b6072 (diff) |
fs/smb/client: Reset password pointer to NULL
Forget to reset ctx->password to NULL will lead to bug like double free
Cc: [email protected]
Cc: Willy Tarreau <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Signed-off-by: Quang Le <[email protected]>
Signed-off-by: Steve French <[email protected]>
-rw-r--r-- | fs/smb/client/fs_context.c | 1 |
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; } |