Commit 9084ed79 authored by Stephen Smalley's avatar Stephen Smalley Committed by Anna Schumaker
Browse files

lsm,nfs: fix memory leak of lsm_context



commit b530104f ("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: b530104f ("lsm: lsm_context in security_dentry_init_security")
Signed-off-by: default avatarStephen Smalley <stephen.smalley.work@gmail.com>
Acked-by: default avatarPaul Moore <paul@paul-moore.com>
Acked-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
parent 1f7a4f98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment