diff mbox series

[24/97] LSM: FIXUP - security_secctx_to_secid

Message ID 20190228221933.2551-25-casey@schaufler-ca.com (mailing list archive)
State New, archived
Headers show
Series LSM: Complete module stacking | expand

Commit Message

Casey Schaufler Feb. 28, 2019, 10:18 p.m. UTC
Initialize l in security_secctx_to_secid

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
---
 security/security.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/security/security.c b/security/security.c
index a0767f8d7822..66f8ee392af5 100644
--- a/security/security.c
+++ b/security/security.c
@@ -1948,6 +1948,7 @@  EXPORT_SYMBOL(security_secid_to_secctx);
 int security_secctx_to_secid(const char *secdata, u32 seclen,
 			     struct lsm_export *l)
 {
+	lsm_export_init(l);
 	return call_int_hook(secctx_to_secid, 0, secdata, seclen, l);
 }
 EXPORT_SYMBOL(security_secctx_to_secid);