aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2014-05-12 15:15:17 +0200
committerJiri Pirko <jiri@resnulli.us>2014-05-12 15:52:20 +0200
commit0dc5ec792d35625094d8f0dc32d58fbdbc2c24d7 (patch)
tree0a8094c8b537ec151f8dcb11a064b1177a97f365
parentcb26d75f3837edf65b93d75b7e70f6538be05b53 (diff)
downloadlibteam-0dc5ec792d35625094d8f0dc32d58fbdbc2c24d7.tar.gz
teamd: register debug callback at the start of callbacks list
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
-rw-r--r--teamd/teamd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/teamd/teamd.c b/teamd/teamd.c
index b7daa51..a45a7fc 100644
--- a/teamd/teamd.c
+++ b/teamd/teamd.c
@@ -1153,8 +1153,8 @@ static int teamd_register_default_handlers(struct teamd_context *ctx)
{
if (!ctx->debug)
return 0;
- return team_change_handler_register(ctx->th,
- &debug_change_handler, ctx);
+ return team_change_handler_register_head(ctx->th,
+ &debug_change_handler, ctx);
}
static void teamd_unregister_default_handlers(struct teamd_context *ctx)