]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix up handling of the XDRBUF_SPARSE_PAGES flag
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 2 Dec 2018 20:22:48 +0000 (15:22 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Dec 2018 12:11:12 +0000 (07:11 -0500)
commitd662ca0efc1f48f01f2335e4a79dc363167b4c1f
tree3ad2f6300ed7f53e640d8f8c1211397d4fa868cc
parentfc41293051b573eb4b90f122d6690bec0240a45f
SUNRPC: Fix up handling of the XDRBUF_SPARSE_PAGES flag

If the allocator fails before it has reached the target number of pages,
then we need to recheck that we're not seeking past the page buffer.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c