From: Felix Fietkau Date: Mon, 20 Nov 2017 18:01:32 +0000 (+0100) Subject: backports: fix nlmsg_type on responses with extack backport X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=3d13478f07f41efc0ea90b978da1c17d4b59e1d7;p=openwrt%2Fstaging%2Fblogic.git backports: fix nlmsg_type on responses with extack backport This is filled with family->id, which needs to be set after registering the copy. 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 b9b1d64e9fd8..2372a118c82d 100644 --- a/backport/compat/backport-4.12.c +++ b/backport/compat/backport-4.12.c @@ -223,6 +223,7 @@ int bp_extack_genl_register_family(struct genl_family *family) } /* copy this since the family might access it directly */ + family->id = copy->family.id; family->attrbuf = copy->family.attrbuf; #if LINUX_VERSION_IS_GEQ(3,13,0) family->mcgrp_offset = copy->family.mcgrp_offset;