]> git.ipfire.org Git - people/ms/linux.git/commit - fs/cifs/file.c
CIFS: return correct errors when pinning memory failed for direct I/O
authorLong Li <longli@microsoft.com>
Sun, 16 Dec 2018 22:41:07 +0000 (22:41 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 24 Dec 2018 04:42:48 +0000 (22:42 -0600)
commit54e94ff94eac887ddb59cfd46b18896da5695e35
tree3189cb084b3fba47f8bdf7b65478f1527e7b6a07
parentb6bc8a7b993e62f82415a5e3e4a6469e80fea19c
CIFS: return correct errors when pinning memory failed for direct I/O

When pinning memory failed, we should return the correct error code and
rewind the SMB credits.

Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Long Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Cc: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/file.c