Skip to contentSkip to conversation

Dropped patch: mm/mempolicy.c:sp_lookup()

PATCH Chuck Ebbert 2 participants 2 messages Nov 16, 2004 – Nov 17, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Andrea posted this one-liner a while ago as part of a larger patch. He said it fixed return of the wrong policy in some conditions. Was this a valid fix?

mm/mempolicy.c 2004-11-15 22:09:41.387881104 -0500 renamed from mm/mempolicy.c 2004-11-11 03:23:03.000000000 -0500 +1 -1
@@ -902,7 +902,7 @@ sp_lookup(struct shared_policy *sp, unsi
                struct sp_node *p = rb_entry(n, struct sp_node, nd);
                if (start >= p->end) {
                        n = n->rb_right;
-               } else if (end < p->start) {
+               } else if (end <= p->start) {
                        n = n->rb_left;
                } else {
                        break;

--Chuck Ebbert 15-Nov-04 22:20:16

#1 lore raw
Quoted 2 lines · Chuck Ebbert

Andrea posted this one-liner a while ago as part of a larger patch. He said it fixed return of the wrong policy in some conditions. Was this a valid fix?

Yes it was.

-Andi