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_ns.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_ns.c')
-rw-r--r-- | security/apparmor/policy_ns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy_ns.c b/security/apparmor/policy_ns.c index e7b7a829532e..8a5632f39751 100644 --- a/security/apparmor/policy_ns.c +++ b/security/apparmor/policy_ns.c @@ -95,7 +95,7 @@ static struct aa_ns *alloc_ns(const char *prefix, const char *name) AA_DEBUG("%s(%p)\n", __func__, ns); if (!ns) return NULL; - if (!aa_policy_init(&ns->base, prefix, name)) + if (!aa_policy_init(&ns->base, prefix, name, GFP_KERNEL)) goto fail_ns; INIT_LIST_HEAD(&ns->sub_ns); |