|
@@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node)
|
|
|
}
|
|
|
EXPORT_SYMBOL(kvmalloc_node);
|
|
|
|
|
|
+/**
|
|
|
+ * kvfree - free memory allocated with kvmalloc
|
|
|
+ * @addr: pointer returned by kvmalloc
|
|
|
+ *
|
|
|
+ * If the memory is allocated from vmalloc area it is freed with vfree().
|
|
|
+ * Otherwise kfree() is used.
|
|
|
+ */
|
|
|
void kvfree(const void *addr)
|
|
|
{
|
|
|
if (is_vmalloc_addr(addr))
|