summaryrefslogtreecommitdiff
path: root/fs/cifs/smbdirect.c
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2019-10-16 23:51:54 +0300
committerSteve French <stfrench@microsoft.com>2019-11-25 10:14:15 +0300
commitacd4680e2bef2405a0e1ef2149fbb01cce7e116c (patch)
tree540f59e4115c53dcb0830b6ae315dfc066158de3 /fs/cifs/smbdirect.c
parentd63cdbae60ac6fbb2864bd3d8df7404f12b7407d (diff)
downloadlinux-acd4680e2bef2405a0e1ef2149fbb01cce7e116c.tar.xz
cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state
The transport should return this error so the upper layer will reconnect. Signed-off-by: Long Li <longli@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smbdirect.c')
-rw-r--r--fs/cifs/smbdirect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 5462cf752432..d91f2f60e2df 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -1972,7 +1972,7 @@ read_rfc1002_done:
if (info->transport_status != SMBD_CONNECTED) {
log_read(ERR, "disconnected\n");
- return 0;
+ return -ECONNABORTED;
}
goto again;