From 9ef828278b449cee959baf70d43fb50820258c2d Mon Sep 17 00:00:00 2001 From: eeb Date: Thu, 13 Oct 2005 18:24:45 +0000 Subject: [PATCH] * the userspace version of LIBCFS_ALLOC() stopped zeroing memory This was reported as bug 9506 --- lnet/include/libcfs/kp30.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/include/libcfs/kp30.h b/lnet/include/libcfs/kp30.h index 7684632..cf08e99 100644 --- a/lnet/include/libcfs/kp30.h +++ b/lnet/include/libcfs/kp30.h @@ -195,7 +195,7 @@ do { \ # endif # define LBUG() assert(0) # define printk(format, args...) printf (format, ## args) -# define LIBCFS_ALLOC(ptr, size) do { (ptr) = malloc(size); } while (0); +# define LIBCFS_ALLOC(ptr, size) do { (ptr) = calloc(1,size); } while (0); # define LIBCFS_FREE(a, b) do { free(a); } while (0); void libcfs_debug_dumplog(void); #endif -- 1.8.3.1