mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
CIFS: Always reset read error to -EIO if no response
Currently we skip setting a read error to -EIO if a stored result is -ENODATA and a response hasn't been received. With the recent changes in read error processing there shouldn't be cases when -ENODATA is set without a response from the server, so reset the error to -EIO unconditionally. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
969ae8e8d4
commit
6b15eb18c6
1 changed files with 1 additions and 2 deletions
|
@ -3236,8 +3236,7 @@ smb2_readv_callback(struct mid_q_entry *mid)
|
|||
credits_received = le16_to_cpu(shdr->CreditRequest);
|
||||
/* fall through */
|
||||
default:
|
||||
if (rdata->result != -ENODATA)
|
||||
rdata->result = -EIO;
|
||||
rdata->result = -EIO;
|
||||
}
|
||||
#ifdef CONFIG_CIFS_SMB_DIRECT
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue