Commit 6a59d924 authored by John Johansen's avatar John Johansen

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: default avatarJohn Johansen <john.johansen@canonical.com>
parent 63c16c3a
......@@ -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
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment