Ronnie Sahlberg d201d7631c cifs: fix memory leak in smb2_copychunk_range
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>
2021-05-19 19:19:20 -05:00
..
2020-10-22 12:17:52 -05:00
2020-06-01 00:10:18 -05:00
2021-05-03 11:21:22 -05:00
2021-04-25 16:28:22 -05:00
2021-04-25 23:59:27 -05:00
2021-05-03 11:20:35 -05:00
2020-06-01 00:10:18 -05:00
2021-05-04 11:53:15 -05:00
2020-08-02 18:00:25 -05:00
2019-01-24 09:37:33 -06:00
2021-03-14 18:14:32 -05:00
2021-04-25 16:28:23 -05:00
2021-05-03 11:21:22 -05:00