]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
apparmor: fix blob compression build failure on ppc
authorJohn Johansen <john.johansen@canonical.com>
Sat, 9 Feb 2019 01:14:35 +0000 (17:14 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 11 Apr 2019 21:56:37 +0000 (14:56 -0700)
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>
security/apparmor/policy_unpack.c

index 4c077aadc38381083bb95124011584009ad97f04..c421801409e331ff10947a11f2494510cb9d9a55 100644 (file)
@@ -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
                /*