1
0
Fork 0

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>
5.4-rM2-2.2.x-imx-squashed
Long Li 2019-10-16 13:51:54 -07:00 committed by Greg Kroah-Hartman
parent 68dcbbd067
commit b1c5a29621
1 changed files with 1 additions and 1 deletions

View File

@ -1972,7 +1972,7 @@ read_rfc1002_done:
if (info->transport_status != SMBD_CONNECTED) {
log_read(ERR, "disconnected\n");
return 0;
return -ECONNABORTED;
}
goto again;