projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d63cdba
)
cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state
author
Long Li
<longli@microsoft.com>
Wed, 16 Oct 2019 20:51:54 +0000
(13:51 -0700)
committer
Steve French
<stfrench@microsoft.com>
Mon, 25 Nov 2019 07:14:15 +0000
(
01:14
-0600)
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>
fs/cifs/smbdirect.c
patch
|
blob
|
history
diff --git
a/fs/cifs/smbdirect.c
b/fs/cifs/smbdirect.c
index
5462cf7
..
d91f2f6
100644
(file)
--- 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;