]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:58:30 +0000 (23:58 -0500)
BugLink: https://bugs.launchpad.net/bugs/1860179
commit acd4680e2bef2405a0e1ef2149fbb01cce7e116c 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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/cifs/smbdirect.c

index bc3207150bdad9774cac75b539fde0627d999198..8d1dcf842f2809ae5517ea9992dcf9776a86374a 100644 (file)
@@ -1970,7 +1970,7 @@ read_rfc1002_done:
 
        if (info->transport_status != SMBD_CONNECTED) {
                log_read(ERR, "disconnected\n");
-               return 0;
+               return -ECONNABORTED;
        }
 
        goto again;