diff mbox

backports: fix nlmsg_type on responses with extack backport

Message ID 20171120180132.12531-1-nbd@nbd.name (mailing list archive)
State Accepted
Headers show

Commit Message

Felix Fietkau Nov. 20, 2017, 6:01 p.m. UTC
This is filled with family->id, which needs to be set after registering
the copy.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 backport/compat/backport-4.12.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Johannes Berg Nov. 21, 2017, 1:11 p.m. UTC | #1
On Mon, 2017-11-20 at 19:01 +0100, Felix Fietkau wrote:
> 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
diff mbox

Patch

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;