Commit acd4680e authored by Long Li's avatar Long Li Committed by Steve French
Browse files

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: default avatarLong Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent d63cdbae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1972,7 +1972,7 @@ read_rfc1002_done:

	if (info->transport_status != SMBD_CONNECTED) {
		log_read(ERR, "disconnected\n");
		return 0;
		return -ECONNABORTED;
	}

	goto again;