cifs: fix potential memory leaks in session setup

[ Upstream commit 2fe58d977e ]

Make sure to free cifs_ses::auth_key.response before allocating it as
we might end up leaking memory in reconnect or mounting.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Paulo Alcantara 2023-01-10 20:35:46 -03:00 • committed by Greg Kroah-Hartman
commit 893d45394d
3 changed files with 4 additions and 0 deletions