diff options
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ipc/util.c b/ipc/util.c index 3459a16a9df9..caec7b1bfaa3 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -403,12 +403,7 @@ void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp) | |||
403 | */ | 403 | */ |
404 | void *ipc_alloc(int size) | 404 | void *ipc_alloc(int size) |
405 | { | 405 | { |
406 | void *out; | 406 | return kvmalloc(size, GFP_KERNEL); |
407 | if (size > PAGE_SIZE) | ||
408 | out = vmalloc(size); | ||
409 | else | ||
410 | out = kmalloc(size, GFP_KERNEL); | ||
411 | return out; | ||
412 | } | 407 | } |
413 | 408 | ||
414 | /** | 409 | /** |