Linux backports project
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@nbd.name>
To: backports@vger.kernel.org
Subject: [PATCH] backports: fix nlmsg_type on responses with extack backport
Date: Mon, 20 Nov 2017 19:01:32 +0100	[thread overview]
Message-ID: <20171120180132.12531-1-nbd@nbd.name> (raw)

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

             reply	other threads:[~2017-11-20 18:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 18:01 Felix Fietkau [this message]
2017-11-21 13:11 ` [PATCH] backports: fix nlmsg_type on responses with extack backport Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171120180132.12531-1-nbd@nbd.name \
    --to=nbd@nbd.name \
    --cc=backports@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox