diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 09:42:31 +0100 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 10:18:27 +0100 |
commit | d102d895713c736fd13e21feaab38b52d8ab32ad (patch) | |
tree | bcbf252b3864929644eba922a2b0ffe6f122b371 /security/apparmor/policy.c | |
parent | apparmor: constify policy name and hname (diff) | |
download | linux-d102d895713c736fd13e21feaab38b52d8ab32ad.tar.xz linux-d102d895713c736fd13e21feaab38b52d8ab32ad.zip |
apparmor: pass gfp param into aa_policy_init()
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/policy.c')
-rw-r--r-- | security/apparmor/policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c index 3b23960b8a5d..5d99fb7ac881 100644 --- a/security/apparmor/policy.c +++ b/security/apparmor/policy.c @@ -272,7 +272,7 @@ struct aa_profile *aa_alloc_profile(const char *hname) goto fail; kref_init(&profile->proxy->count); - if (!aa_policy_init(&profile->base, NULL, hname)) + if (!aa_policy_init(&profile->base, NULL, hname, GFP_KERNEL)) goto fail; kref_init(&profile->count); |