diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2019-04-10 07:47:22 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-04-16 09:38:26 -0500 |
commit | e6d0fb7b34f264f72c33053558a360a6a734905e (patch) | |
tree | 5b0981d05bd73ae29925e651ee77a52ddd8fed82 /fs/cifs/smb2misc.c | |
parent | b57a55e2200ede754e4dc9cce4ba9402544b9365 (diff) | |
download | linux-e6d0fb7b34f264f72c33053558a360a6a734905e.tar.bz2 |
cifs: fix handle leak in smb2_query_symlink()
If we enter smb2_query_symlink() for something that is not a symlink
and where the SMB2_open() would succeed we would never end up
closing this handle and would thus leak a handle on the server.
Fix this by immediately calling SMB2_close() on successfull open.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2misc.c')
0 files changed, 0 insertions, 0 deletions