Hooks with same family, basehook and priority were inadvertently inserted into the list in reverse ordering, fix that. Suggested-by: Florian Westphal Fixes: b98fee20bfe23 ("mnl: revisit hook listing") Signed-off-by: Phil Sutter --- src/mnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnl.c b/src/mnl.c index 4893af8322ae6..b9efd3cfd3cea 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -2520,7 +2520,7 @@ static void basehook_list_add_tail(struct basehook *b, struct list_head *head) continue; if (!basehook_eq(hook, b)) continue; - if (hook->prio < b->prio) + if (hook->prio <= b->prio) continue; list_add(&b->list, &hook->list); -- 2.51.0