提交 6b15eb18 编写于 作者: P Pavel Shilovsky 提交者: Steve French

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: NPavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: NSteve French <stfrench@microsoft.com>
上级 969ae8e8
......@@ -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
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册