cifs: smbd: Return -ECONNABORTED when trasnport is not in connected state
authorLong Li <longli@microsoft.com>
Wed, 16 Oct 2019 20:51:54 +0000 (13:51 -0700)
committerSteve 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

index 5462cf7..d91f2f6 100644 (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;