Commit 98e0d408 authored by Long Li's avatar Long Li Committed by Steve French

cifs: smbd: Return EINTR when interrupted

When packets are waiting for outbound I/O and interrupted, return the
proper error code to user process.
Signed-off-by: default avatarLong Li <longli@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent e8b3bfe9
...@@ -1972,7 +1972,7 @@ static int smbd_recv_buf(struct smbd_connection *info, char *buf, ...@@ -1972,7 +1972,7 @@ static int smbd_recv_buf(struct smbd_connection *info, char *buf,
info->transport_status != SMBD_CONNECTED); info->transport_status != SMBD_CONNECTED);
/* Don't return any data if interrupted */ /* Don't return any data if interrupted */
if (rc) if (rc)
return -ENODEV; return rc;
if (info->transport_status != SMBD_CONNECTED) { if (info->transport_status != SMBD_CONNECTED) {
log_read(ERR, "disconnected\n"); log_read(ERR, "disconnected\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment