diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/security.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/security.c b/security/security.c index 4927e7cc7d96..b49ee810371b 100644 --- a/security/security.c +++ b/security/security.c @@ -118,6 +118,8 @@ static int lsm_append(char *new, char **result) if (*result == NULL) { *result = kstrdup(new, GFP_KERNEL); + if (*result == NULL) + return -ENOMEM; } else { /* Check if it is the last registered name */ if (match_last_lsm(*result, new)) @@ -1065,6 +1067,7 @@ int security_kernel_load_data(enum kernel_load_data_id id) return ret; return ima_load_data(id); } +EXPORT_SYMBOL_GPL(security_kernel_load_data); int security_task_fix_setuid(struct cred *new, const struct cred *old, int flags) |