projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nvme: fix Kconfig description for BLK_DEV_NVME_SCSI
[linux-2.6-block.git]
/
ipc
/
util.c
diff --git
a/ipc/util.c
b/ipc/util.c
index 0f401d94b7c657d5e7126fe78f149c94ffea8e24..798cad18dd878f2ee81f03e34431dbc001e2c2a9 100644
(file)
--- 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
/**
* 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);
}
/**
}
/**