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)
commitc4f2f591f02c392ea7de018d2733748bf4c7b5f5
tree7bd35cee96b5206857ec1f0f5869d9e4bc8a5861
parent9a20f6f4e6ba9713605fbf7e7426ca22f1181545
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