fs/smb/client: Reset password pointer to NULL
authorQuang Le <quanglex97@gmail.com>
Thu, 28 Sep 2023 17:44:13 +0000 (00:44 +0700)
committerSteve French <stfrench@microsoft.com>
Thu, 28 Sep 2023 19:49:51 +0000 (14:49 -0500)
commite6e43b8aa7cd3c3af686caf0c2e11819a886d705
tree49a09c3754101d8d3225a8c2345a029106a286e2
parent6465e260f48790807eef06b583b38ca9789b6072
fs/smb/client: Reset password pointer to NULL

Forget to reset ctx->password to NULL will lead to bug like double free

Cc: stable@vger.kernel.org
Cc: Willy Tarreau <w@1wt.eu>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Quang Le <quanglex97@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c