diff options
author | 2025-02-20 14:29:36 -0500 | |
---|---|---|
committer | 2025-02-25 15:07:24 -0500 | |
commit | 9084ed79ddaaaa1ec01cd304af9fb532c26252db (patch) | |
tree | 641ca5f17465cdc54df025981d040e051b6b597c /net/lapb/lapb_timer.c | |
parent | sunrpc: suppress warnings for unused procfs functions (diff) | |
download | wireguard-linux-9084ed79ddaaaa1ec01cd304af9fb532c26252db.tar.xz wireguard-linux-9084ed79ddaaaa1ec01cd304af9fb532c26252db.zip |
lsm,nfs: fix memory leak of lsm_context
commit b530104f50e8 ("lsm: lsm_context in security_dentry_init_security")
did not preserve the lsm id for subsequent release calls, which results
in a memory leak. Fix it by saving the lsm id in the nfs4_label and
providing it on the subsequent release call.
Fixes: b530104f50e8 ("lsm: lsm_context in security_dentry_init_security")
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions