]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix xdr_expand_hole()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 4 Dec 2020 22:15:09 +0000 (17:15 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 14 Dec 2020 11:51:07 +0000 (06:51 -0500)
commit1a5f3cdf00272c29e193622787db1ecf2a287298
tree7bd35cee96b5206857ec1f0f5869d9e4bc8a5861
parent0a07d2de222a58020d9f15e68f0c0764de17a7f5
SUNRPC: Fix xdr_expand_hole()

We do want to try to grow the buffer if possible, but if that attempt
fails, we still want to move the data and truncate the XDR message.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/xdr.h
net/sunrpc/xdr.c