diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-06-08 13:21:18 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-06-07 23:39:41 -0500 |
commit | 9d874c36552afbd08778687aeaff24a8a7260f20 (patch) | |
tree | 0fab42a276b8045ecb1f96112ed1c4ca7d21508a /fs/cifs/smb2file.c | |
parent | c7c137b931b6894531003b5de888ad012dc37ba6 (diff) | |
download | linux-stable-9d874c36552afbd08778687aeaff24a8a7260f20.tar.gz linux-stable-9d874c36552afbd08778687aeaff24a8a7260f20.tar.bz2 linux-stable-9d874c36552afbd08778687aeaff24a8a7260f20.zip |
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>
Diffstat (limited to 'fs/cifs/smb2file.c')
-rw-r--r-- | fs/cifs/smb2file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2file.c b/fs/cifs/smb2file.c index 12af5dba742b..788412675723 100644 --- a/fs/cifs/smb2file.c +++ b/fs/cifs/smb2file.c @@ -64,7 +64,8 @@ smb2_open_file(const unsigned int xid, struct cifs_open_parms *oparms, if (oparms->tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LEASING) memcpy(smb2_oplock + 1, fid->lease_key, SMB2_LEASE_KEY_SIZE); - rc = SMB2_open(xid, oparms, smb2_path, smb2_oplock, smb2_data, NULL); + rc = SMB2_open(xid, oparms, smb2_path, smb2_oplock, smb2_data, NULL, + NULL); if (rc) goto out; |