aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/security/apparmor/lib.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2013-10-08 08:43:00 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-10-08 08:43:00 -0700
commite3c55d406bd8df1a878546002c93db90c42be10c (patch)
treeefb0ba2707c95fd7166cf1b76887c43c977e37dd /security/apparmor/lib.c
parentInput: st1232 - include linux/of.h header (diff)
parentLinux 3.12-rc4 (diff)
downloadwireguard-linux-e3c55d406bd8df1a878546002c93db90c42be10c.tar.xz
wireguard-linux-e3c55d406bd8df1a878546002c93db90c42be10c.zip
Merge tag 'v3.12-rc4' into next
Merge with mainline to bring in changes to input subsystem that were committed through other trees.
Diffstat (limited to 'security/apparmor/lib.c')
-rw-r--r--security/apparmor/lib.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c
index fcfe0233574c..69689922c491 100644
--- a/security/apparmor/lib.c
+++ b/security/apparmor/lib.c
@@ -97,11 +97,6 @@ void *__aa_kvmalloc(size_t size, gfp_t flags)
if (size <= (16*PAGE_SIZE))
buffer = kmalloc(size, flags | GFP_NOIO | __GFP_NOWARN);
if (!buffer) {
- /* see kvfree for why size must be at least work_struct size
- * when allocated via vmalloc
- */
- if (size < sizeof(struct work_struct))
- size = sizeof(struct work_struct);
if (flags & __GFP_ZERO)
buffer = vzalloc(size);
else