When a matching entry is found from the rb_tree, the insert function
should return the found entry from the tree to the caller. This is
also explicitly documented in the code. However, the code incorrectly
returned NULL instead.
Fix the code to return the match as it should do. Without this fix
identical pageframe entries are never located.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
* tree. Return that node to indicate the
* collision
*/
* tree. Return that node to indicate the
* collision
*/
}
/* Add new node and rebalance tree. */
}
/* Add new node and rebalance tree. */