From: Felix Fietkau Date: Thu, 16 Nov 2017 14:38:54 +0000 (+0100) Subject: backports: fix events with extack backport X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=47a8c0a144b873ca62ef6d000286464db0519292;p=openwrt%2Fstaging%2Fblogic.git backports: fix events with extack backport The multicast group offset needs to be synced after registering the family, otherwise multicast messages will use the wrong id Signed-off-by: Felix Fietkau Signed-off-by: Johannes Berg --- diff --git a/backport/compat/backport-4.12.c b/backport/compat/backport-4.12.c index f997b6c5161d..5e7630845a10 100644 --- a/backport/compat/backport-4.12.c +++ b/backport/compat/backport-4.12.c @@ -224,6 +224,7 @@ int bp_extack_genl_register_family(struct genl_family *family) /* copy this since the family might access it directly */ family->attrbuf = copy->family.attrbuf; + family->mcgrp_offset = copy->family.mcgrp_offset; mutex_lock(&copies_mutex); list_add_tail(©->list, &copies_list);