From 96e68adc348e96c1b9d70f6a621f607591f052c2 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 30 Mar 2012 12:03:32 +0530 Subject: features/locks: INIT the list before insert_merge Change-Id: I1612565e2bbf1811a85341016b86571bdf6e5062 BUG: 805994 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3047 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- xlators/features/locks/src/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/features/locks') diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index a92145d2..d926a9c6 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -800,6 +800,7 @@ __insert_and_merge (pl_inode_t *pl_inode, posix_lock_t *lock) __destroy_lock (conf); __destroy_lock (lock); + INIT_LIST_HEAD (&sum->list); __insert_and_merge (pl_inode, sum); return; -- cgit