Message ID | 1571259116-102015-6-git-send-email-longli@linuxonhyperv.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | cifs: smbd: Improve reliability on transport reconnect | expand |
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 227ef51c0712..cf001f10d555 100644 --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/smbdirect.c @@ -1970,7 +1970,7 @@ static int smbd_recv_buf(struct smbd_connection *info, char *buf, if (info->transport_status != SMBD_CONNECTED) { log_read(ERR, "disconnected\n"); - return 0; + return -ECONNABORTED; } goto again;