X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=ipc%2Futil.c;h=798cad18dd878f2ee81f03e34431dbc001e2c2a9;hb=01fe818cc3409c75bc15a5695600b43f4b354b62;hp=0f401d94b7c657d5e7126fe78f149c94ffea8e24;hpb=041c79514af9080c75197078283134f538f46b44;p=cascardo%2Flinux.git diff --git a/ipc/util.c b/ipc/util.c index 0f401d94b7c6..798cad18dd87 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -414,17 +414,12 @@ void *ipc_alloc(int size) /** * ipc_free - free ipc space * @ptr: pointer returned by ipc_alloc - * @size: size of block * - * Free a block created with ipc_alloc(). The caller must know the size - * used in the allocation call. + * Free a block created with ipc_alloc(). */ -void ipc_free(void *ptr, int size) +void ipc_free(void *ptr) { - if (size > PAGE_SIZE) - vfree(ptr); - else - kfree(ptr); + kvfree(ptr); } /**