diff options
author | Zhipeng Lu <alexious@zju.edu.cn> | 2023-12-24 11:20:33 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-03-01 17:12:04 +0300 |
commit | e67b652d8e8591d3b1e569dbcdfcee15993e91fa (patch) | |
tree | 38f990ddff959c9f03f208d86e774eb3bea3ad8a /io_uring | |
parent | d206a76d7d2726f3b096037f2079ce0bd3ba329b (diff) | |
download | linux-e67b652d8e8591d3b1e569dbcdfcee15993e91fa.tar.xz |
SUNRPC: fix a memleak in gss_import_v2_context
The ctx->mech_used.data allocated by kmemdup is not freed in neither
gss_import_v2_context nor it only caller gss_krb5_import_sec_context,
which frees ctx on error.
Thus, this patch reform the last call of gss_import_v2_context to the
gss_krb5_import_ctx_v2, preventing the memleak while keepping the return
formation.
Fixes: 47d848077629 ("gss_krb5: handle new context format from gssd")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions