mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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: Long Li <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
e8b3bfe9bc
commit
98e0d40888
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue