Skip to content

Commit 6a59d92

Browse files
committed
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: 876dd86 ("apparmor: Initial implementation of raw policy blob compression") Signed-off-by: John Johansen <[email protected]>
1 parent 63c16c3 commit 6a59d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/apparmor/policy_unpack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ static int deflate_compress(const char *src, size_t slen, char **dst,
10621062
dstbuf = kvzalloc(strm.total_out, GFP_KERNEL);
10631063
if (dstbuf) {
10641064
memcpy(dstbuf, stgbuf, strm.total_out);
1065-
vfree(stgbuf);
1065+
kvfree(stgbuf);
10661066
}
10671067
} else
10681068
/*

0 commit comments

Comments
 (0)