Commit 9ab70ca6 authored by Kovtunenko Oleksandr's avatar Kovtunenko Oleksandr Committed by Steve French

Fixed https://bugzilla.kernel.org/show_bug.cgi?id=202935 allow write on the same file

Copychunk allows source and target to be on the same file.
For details on restrictions see MS-SMB2 3.3.5.15.6
Signed-off-by: default avatarKovtunenko Oleksandr <alexander198961@gmail.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 2c87d6a9
......@@ -1070,11 +1070,6 @@ ssize_t cifs_file_copychunk_range(unsigned int xid,
cifs_dbg(FYI, "copychunk range\n");
if (src_inode == target_inode) {
rc = -EINVAL;
goto out;
}
if (!src_file->private_data || !dst_file->private_data) {
rc = -EBADF;
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment