Skip to content

Commit 9ab70ca

Browse files
Alexander198961smfrench
authored andcommitted
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: Kovtunenko Oleksandr <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 2c87d6a commit 9ab70ca

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/cifs/cifsfs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,11 +1070,6 @@ ssize_t cifs_file_copychunk_range(unsigned int xid,
10701070

10711071
cifs_dbg(FYI, "copychunk range\n");
10721072

1073-
if (src_inode == target_inode) {
1074-
rc = -EINVAL;
1075-
goto out;
1076-
}
1077-
10781073
if (!src_file->private_data || !dst_file->private_data) {
10791074
rc = -EBADF;
10801075
cifs_dbg(VFS, "missing cifsFileInfo on copy range src file\n");

0 commit comments

Comments
 (0)