From: Kovtunenko Oleksandr <alexander198961@gmail.com>
To: sfrench@samba.org
Cc: linux-kernel@vger.kernel.org, samba-technical@lists.samba.org,
linux-cifs@vger.kernel.org,
Kovtunenko Oleksandr <alexander198961@gmail.com>
Subject: [PATCH] Fixed https://bugzilla.kernel.org/show_bug.cgi?id=202935 allow write on the same file
Date: Tue, 14 May 2019 05:52:34 +0000 [thread overview]
Message-ID: <1557813154-6663-1-git-send-email-alexander198961@gmail.com> (raw)
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
reply other threads:[~2019-05-14 5:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1557813154-6663-1-git-send-email-alexander198961@gmail.com \
--to=alexander198961@gmail.com \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=sfrench@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).