From: Long Li Date: Wed, 16 Oct 2019 20:51:54 +0000 (-0700) Subject: cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=acd4680e2bef2405a0e1ef2149fbb01cce7e116c;p=linux.git 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 Cc: stable@vger.kernel.org Signed-off-by: Steve French --- diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 5462cf7524328..d91f2f60e2df3 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;