SUNRPC: Fix leak of krb5p encode pages
authorChuck Lever <chuck.lever@oracle.com>
Fri, 30 Nov 2018 20:39:57 +0000 (15:39 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 2 Dec 2018 14:43:56 +0000 (09:43 -0500)
commit8dae5398ab1ac107b1517e8195ed043d5f422bd0
tree4a9fd027ef08f3903bf31a47dc16b0ae3e59a4e1
parent9bd11523dc1b9293d1eee2c0b8cfc986a312bbce
SUNRPC: Fix leak of krb5p encode pages

call_encode can be invoked more than once per RPC call. Ensure that
each call to gss_wrap_req_priv does not overwrite pointers to
previously allocated memory.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/auth_gss/auth_gss.c