1
0
Fork 0

drbd: Interval tree bugfix

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
hifive-unleashed-5.1
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;
}