summaryrefslogtreecommitdiffstats
path: root/security/apparmor/lib.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-05-06 14:02:53 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-05-06 14:02:53 -0400
commit39f1f78d53b9bcbca91967380c5f0f2305a5c55f (patch)
tree83020c0da45781d7b205193dd7327952133f2194 /security/apparmor/lib.c
parent50c6e282bdf5e8dabf8d7cf7b162545a55645fd9 (diff)
downloadop-kernel-dev-39f1f78d53b9bcbca91967380c5f0f2305a5c55f.zip
op-kernel-dev-39f1f78d53b9bcbca91967380c5f0f2305a5c55f.tar.gz
nick kvfree() from apparmor
too many places open-code it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor/lib.c')
-rw-r--r--security/apparmor/lib.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c
index 6968992..c1827e0 100644
--- a/security/apparmor/lib.c
+++ b/security/apparmor/lib.c
@@ -104,17 +104,3 @@ void *__aa_kvmalloc(size_t size, gfp_t flags)
}
return buffer;
}
-
-/**
- * kvfree - free an allocation do by kvmalloc
- * @buffer: buffer to free (MAYBE_NULL)
- *
- * Free a buffer allocated by kvmalloc
- */
-void kvfree(void *buffer)
-{
- if (is_vmalloc_addr(buffer))
- vfree(buffer);
- else
- kfree(buffer);
-}
OpenPOWER on IntegriCloud