backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] backports: fix nlmsg_type on responses with extack backport
@ 2017-11-20 18:01 Felix Fietkau
  2017-11-21 13:11 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2017-11-20 18:01 UTC (permalink / raw)
  To: backports

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(+)

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;
-- 
2.14.2

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] backports: fix nlmsg_type on responses with extack backport
  2017-11-20 18:01 [PATCH] backports: fix nlmsg_type on responses with extack backport Felix Fietkau
@ 2017-11-21 13:11 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2017-11-21 13:11 UTC (permalink / raw)
  To: Felix Fietkau, backports

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-21 13:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-20 18:01 [PATCH] backports: fix nlmsg_type on responses with extack backport Felix Fietkau
2017-11-21 13:11 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).