]> git.baikalelectronics.ru Git - kernel.git/commit
fs/smb/client: Reset password pointer to NULL
authorQuang Le <quanglex97@gmail.com>
Thu, 28 Sep 2023 17:44:13 +0000 (00:44 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:57:05 +0000 (14:57 +0200)
commitf555a508087ab8210b4658120ac6413d6fe2b4c7
tree85bc34aa7b845c26169415606766dd090d3bf620
parent1983fd78701a04664951ca5d0852b587ad495626
fs/smb/client: Reset password pointer to NULL

commit e6e43b8aa7cd3c3af686caf0c2e11819a886d705 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/fs_context.c