summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/util.c7
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 */
404void *ipc_alloc(int size) 404void *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/**