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

Message ID 1557813154-6663-1-git-send-email-alexander198961@gmail.com
State New
Headers show
Series
  • Fixed https://bugzilla.kernel.org/show_bug.cgi?id=202935 allow write on the same file
Related show

Commit Message

Kovtunenko Oleksandr May 14, 2019, 5:52 a.m. UTC
Signed-off-by: Kovtunenko Oleksandr <alexander198961@gmail.com>
---
 fs/cifs/cifsfs.c | 5 -----
 1 file changed, 5 deletions(-)

Patch
diff mbox series

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index a05bf1d..2964438 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -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");