backports: fix events with extack backport
authorFelix Fietkau <nbd@nbd.name>
Thu, 16 Nov 2017 14:38:54 +0000 (15:38 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Nov 2017 09:46:20 +0000 (10:46 +0100)
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 <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/compat/backport-4.12.c

index f997b6c5161db494f9157834be28fe576eece8dd..5e7630845a10308aa68e3aabdbd745b9ed1883cd 100644 (file)
@@ -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(&copy->list, &copies_list);