cifs: free ntlmsspblob allocated in negotiate
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 17 Jan 2022 06:20:47 +0000 (00:20 -0600)
committerSteve French <stfrench@microsoft.com>
Mon, 17 Jan 2022 17:56:19 +0000 (11:56 -0600)
commite3548aaf41a200c2af359462be23bcdd76efd795
tree00c2f2395df998204f7754edd109b320ede6f541
parent0c947b893d69231a9add855939da7c66237ab44f
cifs: free ntlmsspblob allocated in negotiate

One of my previous fixes:
cifs: send workstation name during ntlmssp session setup
...changed the prototype of build_ntlmssp_negotiate_blob
from being allocated by the caller to being allocated within
the function. The caller needs to free this object too.
While SMB2 version of the caller did it, I forgot to free
for the SMB1 version. Fixing that here.

Fixes: 49bd49f983b5 ("cifs: send workstation name during ntlmssp session setup")
Cc: stable@vger.kernel.org # 5.16
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/sess.c