Skip to content

Commit

Permalink
cifs: smbd: Return -ECONNABORTED when trasnport is not in connected s…
Browse files Browse the repository at this point in the history
…tate

The transport should return this error so the upper layer will reconnect.

Signed-off-by: Long Li <[email protected]>
Cc: [email protected]
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
longlimsft authored and Steve French committed Nov 25, 2019
1 parent d63cdba commit acd4680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/smbdirect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,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;
Expand Down

0 comments on commit acd4680

Please sign in to comment.