]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7aeeeba059b9b697ca9cd4daa14c642eacc9d6d6
treed106311ccb86ee0ae30aeaf05565861f5d636017
parentc88438847e3538f78042a17e324c21dbb0a2681d
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