summaryrefslogtreecommitdiff
path: root/lib/core/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/os.h')
-rw-r--r--lib/core/os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/core/os.h b/lib/core/os.h
index fc83cdf3..69273ea0 100644
--- a/lib/core/os.h
+++ b/lib/core/os.h
@@ -209,6 +209,9 @@ typedef unsigned gfp_t;
#define kcalloc(a,b,c) calloc((a), (b))
#define kfree free
+#define vzalloc(a) calloc(1, (a))
+#define vfree free
+
static inline void *
kmemdup(const void *src, size_t len, gfp_t gfp)
{