diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-03-30 12:03:32 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-03-31 05:17:09 -0700 |
commit | 96e68adc348e96c1b9d70f6a621f607591f052c2 (patch) | |
tree | 0e72d4afba004bf16ce7aef55d66c7fd051dcdb8 /xlators/features/locks | |
parent | c078b9df8d8f44ca90e61566f83f83809ce5ac0f (diff) |
features/locks: INIT the list before insert_merge
Change-Id: I1612565e2bbf1811a85341016b86571bdf6e5062
BUG: 805994
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/3047
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/features/locks')
-rw-r--r-- | xlators/features/locks/src/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index a92145d23e1..d926a9c6f3c 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; |