mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state
commit acd4680e2b
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
68dcbbd067
commit
b1c5a29621
1 changed files with 1 additions and 1 deletions
|
@ -1972,7 +1972,7 @@ static int smbd_recv_buf(struct smbd_connection *info, char *buf,
|
|||
|
||||
if (info->transport_status != SMBD_CONNECTED) {
|
||||
log_read(ERR, "disconnected\n");
|
||||
return 0;
|
||||
return -ECONNABORTED;
|
||||
}
|
||||
|
||||
goto again;
|
||||
|
|
Loading…
Reference in a new issue