Files
linux/fs/cifs
Ronnie Sahlberg 4e95d8160a cifs: fix memory leak in smb2_copychunk_range
commit d201d7631c 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: 9bf0c9cd43 ("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>
2021-05-26 11:48:32 +02:00
..
2020-10-29 09:54:59 +01:00
2016-10-13 19:48:11 -05:00
2020-11-05 11:08:44 +01:00
2007-06-05 18:30:44 +00:00
2018-08-23 15:10:49 -05:00
2018-06-01 09:14:30 -05:00
2012-07-24 10:25:13 -05:00
2021-03-24 11:07:39 +01:00
2013-09-08 14:54:24 -05:00
2019-10-05 13:10:12 +02:00