Pawel Witek 8c2cdb7326 cifs: fix pcchunk length type in smb2_copychunk_range
commit d66cde50c3c868af7abddafce701bb86e4a93039 upstream.

Change type of pcchunk->Length from u32 to u64 to match
smb2_copychunk_range arguments type. Fixes the problem where performing
server-side copy with CIFS_IOC_COPYCHUNK_FILE ioctl resulted in incomplete
copy of large files while returning -EINVAL.

Fixes: 9bf0c9cd4314 ("CIFS: Fix SMB2/SMB3 Copy offload support (refcopy) for large files")
Cc: <stable@vger.kernel.org>
Signed-off-by: Pawel Witek <pawel.ireneusz.witek@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-17 11:48:14 +02:00
..
2020-10-22 12:17:52 -05:00
2020-06-01 00:10:18 -05:00
2020-11-15 23:05:33 -06:00
2023-01-14 10:16:25 +01:00
2023-01-14 10:16:25 +01:00
2020-06-01 00:10:18 -05:00
2023-01-14 10:16:34 +01:00
2021-01-19 18:27:19 +01:00
2021-09-08 08:49:01 +02:00
2020-10-22 12:16:24 -05:00
2023-01-14 10:16:25 +01:00
2020-08-02 18:00:25 -05:00
2023-03-22 13:30:03 +01:00