diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-05-19 08:40:11 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-26 11:29:06 +0200 |
commit | 5716a37020e08b3e93d2f4f7ed14ebf137029dd5 (patch) | |
tree | ce02d566f0e29341712bf4804bc5f216947801a9 /samples | |
parent | aa039ddb54de538e32fb957693e6089c8576dfe3 (diff) | |
download | linux-stable-5716a37020e08b3e93d2f4f7ed14ebf137029dd5.tar.gz linux-stable-5716a37020e08b3e93d2f4f7ed14ebf137029dd5.tar.bz2 linux-stable-5716a37020e08b3e93d2f4f7ed14ebf137029dd5.zip |
cifs: fix memory leak in smb2_copychunk_range
commit d201d7631ca170b038e7f8921120d05eec70d7c5 upstream.
When using smb2_copychunk_range() for large ranges we will
run through several iterations of a loop calling SMB2_ioctl()
but never actually free the returned buffer except for the final
iteration.
This leads to memory leaks everytime a large copychunk is requested.
Fixes: 9bf0c9cd4314 ("CIFS: Fix SMB2/SMB3 Copy offload support (refcopy) for large files")
Cc: <stable@vger.kernel.org>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions