drbd: Interval tree bugfix

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
Andreas Gruenbacher 2011-01-26 13:06:08 +01:00 committed by Philipp Reisner
parent e3cfa7b26a
commit 6618bf1638
1 changed files with 2 additions and 1 deletions

View File

@ -58,8 +58,9 @@ drbd_insert_interval(struct rb_root *root, struct drbd_interval *this)
new = &(*new)->rb_right;
else if (this < here)
new = &(*new)->rb_left;
else if (this->sector > here->sector)
else if (this > here)
new = &(*new)->rb_right;
else
return false;
}