SUNRPC: init xdr_stream for zero iov_len, page_len
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 6 Apr 2016 15:32:52 +0000 (11:32 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 9 May 2016 13:05:40 +0000 (09:05 -0400)
commit06ef26a0e35199cc0445d7d5708533a12af8ff5b
treed106311ccb86ee0ae30aeaf05565861f5d636017
parentfe238e601d2519f259103ab65caea3b077ed7b39
SUNRPC: init xdr_stream for zero iov_len, page_len

An xdr_buf with head[0].iov_len = 0 and page_len = 0 will cause
xdr_init_decode() to incorrectly setup the xdr_stream.  Specifically,
xdr->end is never initialized.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xdr.c