Messages in this thread Patch in this message | | | Date | Mon, 15 Nov 2004 23:15:51 -0500 | From | Chuck Ebbert <> | Subject | Dropped patch: mm/mempolicy.c:sp_lookup() |
| |
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?
--- linux-2.6.10-rc2/mm/mempolicy.c 2004-11-11 03:23:03.000000000 -0500 +++ edited/mm/mempolicy.c 2004-11-15 22:09:41.387881104 -0500 @@ -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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |