]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SUNRPC: fix some memleaks in gssx_dec_option_array
authorZhipeng Lu <alexious@zju.edu.cn>
Tue, 2 Jan 2024 05:38:13 +0000 (13:38 +0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:36 +0000 (18:19 -0400)
commit5e6013ae2c8d420faea553d363935f65badd32c3
tree9320acb46cd52a55cbdd7a7a2f795681fdc6c5ba
parent99044c01ed5329e73651c054d8a4baacdbb1a27c
SUNRPC: fix some memleaks in gssx_dec_option_array

[ Upstream commit 3cfcfc102a5e57b021b786a755a38935e357797d ]

The creds and oa->data need to be freed in the error-handling paths after
their allocation. So this patch add these deallocations in the
corresponding paths.

Fixes: 1d658336b05f ("SUNRPC: Add RPC based upcall mechanism for RPCGSS auth")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/auth_gss/gss_rpc_xdr.c