]> 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)
commit7670669310ae4388d40f36d55a551f106cc1bb3f
treefe11a91112e809918a12bdfac4b5ba692ad04f36
parent2a04bde0aad48185ca43f897efbe4361e6e06ca7
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