summaryrefslogtreecommitdiffstats
path: root/security/apparmor
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2019-02-09 02:14:35 +0100
committerJohn Johansen <john.johansen@canonical.com>2019-04-11 23:56:37 +0200
commit6a59d9243d349ae598e8ea74c36aa8e31705071a (patch)
tree41a52ed5b5006aea141c19b2226c6e2f7b96aefb /security/apparmor
parentapparmor: Initial implementation of raw policy blob compression (diff)
downloadlinux-6a59d9243d349ae598e8ea74c36aa8e31705071a.tar.xz
linux-6a59d9243d349ae598e8ea74c36aa8e31705071a.zip
apparmor: fix blob compression build failure on ppc
security/apparmor/policy_unpack.c: In function 'deflate_compress': security/apparmor/policy_unpack.c:1064:4: error: implicit declaration of function 'vfree'; did you mean 'kfree'? [-Werror=implicit-function-declaration] vfree(stgbuf); ^~~~~ kfree Fixes: 876dd866c084 ("apparmor: Initial implementation of raw policy blob compression") Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor')
-rw-r--r--security/apparmor/policy_unpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c
index 4c077aadc383..c421801409e3 100644
--- a/security/apparmor/policy_unpack.c
+++ b/security/apparmor/policy_unpack.c
@@ -1062,7 +1062,7 @@ static int deflate_compress(const char *src, size_t slen, char **dst,
dstbuf = kvzalloc(strm.total_out, GFP_KERNEL);
if (dstbuf) {
memcpy(dstbuf, stgbuf, strm.total_out);
- vfree(stgbuf);
+ kvfree(stgbuf);
}
} else
/*