diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-06-08 06:21:18 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-06-08 07:39:41 +0300 |
commit | 9d874c36552afbd08778687aeaff24a8a7260f20 (patch) | |
tree | 0fab42a276b8045ecb1f96112ed1c4ca7d21508a /fs/cifs/smb2inode.c | |
parent | c7c137b931b6894531003b5de888ad012dc37ba6 (diff) | |
download | linux-9d874c36552afbd08778687aeaff24a8a7260f20.tar.xz |
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/smb2inode.c')
-rw-r--r-- | fs/cifs/smb2inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2inode.c b/fs/cifs/smb2inode.c index a6e786e39248..d01ad706d7fc 100644 --- a/fs/cifs/smb2inode.c +++ b/fs/cifs/smb2inode.c @@ -71,7 +71,8 @@ smb2_open_op_close(const unsigned int xid, struct cifs_tcon *tcon, oparms.fid = &fid; oparms.reconnect = false; - rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL); + rc = SMB2_open(xid, &oparms, utf16_path, &oplock, NULL, NULL, + NULL); if (rc) { kfree(utf16_path); return rc; |