summaryrefslogtreecommitdiff
path: root/backport
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-20 19:01:32 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-11-21 14:10:11 +0100
commit3d13478f07f41efc0ea90b978da1c17d4b59e1d7 (patch)
tree30636f70b109268c639cd1f6687b9b5685eafa58 /backport
parent1d8cc151d365582b42be00af776270b834a7a37d (diff)
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 <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport')
-rw-r--r--backport/compat/backport-4.12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backport/compat/backport-4.12.c b/backport/compat/backport-4.12.c
index b9b1d64e..2372a118 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;