diff options
author | Vijay Bellur <vijay@gluster.com> | 2012-05-28 23:53:14 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-05-28 19:38:17 -0700 |
commit | 54ab2a3cbe534c5e716e34a365e3710666d76a46 (patch) | |
tree | 255732b571ac22b8119917361b7e6611176c353f /libglusterfs | |
parent | 99ea01aa92109f0fa5b35f47e7d04dce11baa654 (diff) |
libglusterfs: Fix incorrect NULL check
Change-Id: I22e1bf1669e639b5097b2b56c90b47e8b733a34d
BUG: 825197
Reviewed-on: http://review.gluster.com/3467
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/fd-lk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/fd-lk.c b/libglusterfs/src/fd-lk.c index 305f58826aa..0c439fe6e93 100644 --- a/libglusterfs/src/fd-lk.c +++ b/libglusterfs/src/fd-lk.c @@ -369,7 +369,7 @@ _fd_lk_insert_and_merge (fd_lk_ctx_t *lk_ctx, if (entry->fl_type == lock->fl_type) { sum = _fd_lk_add_locks (entry, lock); - if (sum) + if (!sum) return; sum->fl_type = entry->fl_type; sum->user_flock.l_type = entry->fl_type; |