mnl: Fix ordering of hooks in 'list hooks' output
Phil Sutter
reviewerPATCH 1/1 mnl: Fix ordering of hooks in 'list hooks' output
Hooks with same family, basehook and priority were inadvertently inserted into the list in reverse ordering, fix that.
Suggested-by Florian Westphal <[email protected]>
Fixes b98fee20bfe23 ("mnl: revisit hook listing")
Signed-off-by Phil Sutter <[email protected]>
--- src/mnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/mnl.c +1 -1
@@ -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);
Signature · 1 line
2.51.0
Florian Westphal
maintainerQuoted 2 lines · Phil Sutter
Hooks with same family, basehook and priority were inadvertently inserted into the list in reverse ordering, fix that.
Right, just push this out.
Phil Sutter
reviewerQuoted 5 lines · Florian Westphal
Quoted 2 lines · Phil Sutter
Hooks with same family, basehook and priority were inadvertently inserted into the list in reverse ordering, fix that.
Right, just push this out.
Patch applied.