]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Always reset read error to -EIO if no response
authorPavel Shilovsky <pshilov@microsoft.com>
Fri, 18 Jan 2019 23:46:14 +0000 (15:46 -0800)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:06:39 +0000 (20:06 -0600)
commit06d885aa6ca425ef1f9bf55ec72898a346d964e9
treeb6676f2f9fbd1ff591d35cd0a4cd79a10f121837
parenta244c1f4b042cfa874e4d98ef7a384857a67bcd1
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>
fs/cifs/smb2pdu.c