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-Tag: v5.4.6~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1c5a29621cf34b77d80d53d6728b9f90dbd250b;p=platform%2Fkernel%2Flinux-rpi.git cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state commit acd4680e2bef2405a0e1ef2149fbb01cce7e116c upstream. 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index b442bfa..5b1b97e 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;