diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2019-01-10 11:27:28 -0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-05-02 21:41:18 +0100 |
commit | bcf0ba6df54e6c376ab898082858b56088a2e4eb (patch) | |
tree | 0435ac8508bb8f16e8bc921965e669293ef5e8d3 | |
parent | 3163a50fb5a49839bb26b7702723b8b532fa3599 (diff) | |
download | linux-stable-bcf0ba6df54e6c376ab898082858b56088a2e4eb.tar.gz linux-stable-bcf0ba6df54e6c376ab898082858b56088a2e4eb.tar.bz2 linux-stable-bcf0ba6df54e6c376ab898082858b56088a2e4eb.zip |
CIFS: Do not hide EINTR after sending network packets
commit ee13919c2e8d1f904e035ad4b4239029a8994131 upstream.
Currently we hide EINTR code returned from sock_sendmsg()
and return 0 instead. This makes a caller think that we
successfully completed the network operation which is not
true. Fix this by properly returning EINTR to callers.
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | fs/cifs/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 970bac263a5d..503e7b2eda8c 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -376,7 +376,7 @@ uncork: if (rc < 0 && rc != -EINTR) cifs_dbg(VFS, "Error %d sending data on socket to server\n", rc); - else + else if (rc > 0) rc = 0; return rc; |