cifs: fix a buffer leak in smb2_query_symlink
authorRonnie Sahlberg <lsahlber@redhat.com>
Fri, 8 Jun 2018 03:21:18 +0000 (13:21 +1000)
committerSteve French <stfrench@microsoft.com>
Fri, 8 Jun 2018 04:39:41 +0000 (23:39 -0500)
commit9d874c36552afbd08778687aeaff24a8a7260f20
tree0fab42a276b8045ecb1f96112ed1c4ca7d21508a
parentc7c137b931b6894531003b5de888ad012dc37ba6
cifs: fix a buffer leak in smb2_query_symlink

This leak was introduced in 91cb74f5142c14dd921ab2d064b7b128054f9fae and caused us
to leak one small buffer for every symlink query.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/link.c
fs/cifs/smb2file.c
fs/cifs/smb2inode.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2proto.h