* [PATCH] Fixed https://bugzilla.kernel.org/show_bug.cgi?id=202935 allow write on the same file
@ 2019-05-14 5:52 Kovtunenko Oleksandr
0 siblings, 0 replies; only message in thread
From: Kovtunenko Oleksandr @ 2019-05-14 5:52 UTC (permalink / raw)
To: sfrench; +Cc: linux-kernel, samba-technical, linux-cifs, Kovtunenko Oleksandr
Signed-off-by: Kovtunenko Oleksandr <alexander198961@gmail.com>
---
fs/cifs/cifsfs.c | 5 -----
1 file changed, 5 deletions(-)
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");
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-14 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 5:52 [PATCH] Fixed https://bugzilla.kernel.org/show_bug.cgi?id=202935 allow write on the same file Kovtunenko Oleksandr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®