Skip to contentSkip to conversation

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

PATCH New Kovtunenko Oleksandr 1 participant 1 message May 14, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 fs/cifs/cifsfs.c | 5 -----
 1 file changed, 5 deletions(-)
fs/cifs/cifsfs.c +0 -5
index a05bf1d..2964438 100644
@@ -1073,11 +1073,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");
Signature · 1 line
1.8.3.1