apparmor: use passed in gfp flags in aa_alloc_null()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 14 Jun 2023 13:02:04 +0000 (16:02 +0300)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 10 Jul 2023 00:31:19 +0000 (17:31 -0700)
commitafad53575a938ceb557227ecfeb0dda59d668d4e
treed01e5606c3a4c6a918f84cf27eddc37e72262ba2
parent180cf257998c5f136f76b8899ef6ec57b410680b
apparmor: use passed in gfp flags in aa_alloc_null()

These allocations should use the gfp flags from the caller instead of
GFP_KERNEL.  But from what I can see, all the callers pass in GFP_KERNEL
so this does not affect runtime.

Fixes: e31dd6e412f7 ("apparmor: fix: kzalloc perms tables for shared dfas")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy.c