]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Add a helper function xdr_stream_decode_string_dup()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 19 Feb 2017 21:08:31 +0000 (16:08 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 21 Feb 2017 21:56:16 +0000 (16:56 -0500)
commit8e8763b10f77b7a2a6f53639f1da1c539d481bf3
treefe11a91112e809918a12bdfac4b5ba692ad04f36
parent9e80a8723e8ff0faa2a720bd7d7978101dd926cd
SUNRPC: Add a helper function xdr_stream_decode_string_dup()

Create a helper function that decodes a xdr string object, allocates a memory
buffer and then store it as a NUL terminated string.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/xdr.h
net/sunrpc/xdr.c