Skip to contentSkip to conversation

backports: fix nlmsg_type on responses with extack backport

PATCH In review Felix Fietkau 2 participants 2 messages Nov 20, 2017 – Nov 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: fix nlmsg_type on responses with extack backport

This is filled with family->id, which needs to be set after registering the copy.

---
 backport/compat/backport-4.12.c | 1 +
 1 file changed, 1 insertion(+)
backport/compat/backport-4.12.c +1 -0
index b9b1d64e..2372a118 100644
@@ -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;
Signature · 4 lines
2.14.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
#1 lore raw
Quoted 2 lines · Felix Fietkau

This is filled with family->id, which needs to be set after registering the copy.

Applied, thanks. Not sure how I missed this?

johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in