From 3c75958d1948753976405f848f59326fc1896c95 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 18 Aug 2010 07:49:15 +0000 Subject: Fix memory corruption in mem pool Added new interface mem_get0, which calls memset on the mem pool entries being returned. Gluster and Kernel compile should now succeed. Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 1393 (Gluster and kernel compile fails) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1393 --- libglusterfs/src/fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/fd.c') diff --git a/libglusterfs/src/fd.c b/libglusterfs/src/fd.c index c9ac947341f..4e942f5f16e 100644 --- a/libglusterfs/src/fd.c +++ b/libglusterfs/src/fd.c @@ -509,7 +509,7 @@ fd_create (inode_t *inode, pid_t pid) return NULL; } - fd = mem_get (inode->table->fd_mem_pool); + fd = mem_get0 (inode->table->fd_mem_pool); if (!fd) goto out; -- cgit