Message ID | 20241223180724.1804-6-cel@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Fix XDR encoding near page boundaries | expand |
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index 62e07c330a66..f198bb043e2f 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -1097,6 +1097,9 @@ static noinline __be32 *xdr_get_next_encode_buffer(struct xdr_stream *xdr, * Checks that we have enough buffer space to encode 'nbytes' more * bytes of data. If so, update the total xdr_buf length, and * adjust the length of the current kvec. + * + * The returned pointer is valid only until the next call to + * xdr_reserve_space() or xdr_commit_encode() on this stream. */ __be32 * xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes) {