vzalloc() is used in rtl8192ce now.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
}
EXPORT_SYMBOL(compat_led_classdev_unregister);
+/**
+ * vzalloc - allocate virtually contiguous memory with zero fill
+ * @size: allocation size
+ * Allocate enough pages to cover @size from the page level
+ * allocator and map them into contiguous kernel virtual space.
+ * The memory allocated is set to zero.
+ *
+ * For tight control over page level allocator and protection flags
+ * use __vmalloc() instead.
+ */
+void *vzalloc(unsigned long size)
+{
+ void *buf;
+ buf = vmalloc(size);
+ memset(buf, 0, size);
+ return buf;
+}
+EXPORT_SYMBOL(vzalloc);
+
#endif
#define netdev_refcnt_read(a) atomic_read(&a->refcnt)
+extern void *vzalloc(unsigned long size);
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) */
#endif /* LINUX_26_37_COMPAT_H */