]> 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)
commitc0df8cc89aa2055fb01905b23935544554370b6c
tree3ad2f6300ed7f53e640d8f8c1211397d4fa868cc
parent0eb3360e40b1b693f7d53b1d546a8068e76914fb
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