From patchwork Thu Nov 16 14:38:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 10061323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EC1B960230 for ; Thu, 16 Nov 2017 14:39:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B61122AAB8 for ; Thu, 16 Nov 2017 14:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A102A2AAB4; Thu, 16 Nov 2017 14:39:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D02D2AAAF for ; Thu, 16 Nov 2017 14:39:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759363AbdKPOi7 (ORCPT ); Thu, 16 Nov 2017 09:38:59 -0500 Received: from nbd.name ([46.4.11.11]:51822 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759254AbdKPOi6 (ORCPT ); Thu, 16 Nov 2017 09:38:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Q9VzxmLAFQI39f11EV8dJ/wmXjlzT2fwyOXC0mXOjMo=; b=VY0bNulfIdSTB8rP88x+7NGoEX cG9bv8DayVs8G0N5RO7VRla5sXeh6znCCDaneCdc090sDEZNpPKvobydJvpWzlq07CzcCQD2UPpPk 1mdSF7ZsfeOcHENa5b+c7N57Ne6w+w3AgArRss5c0W2g5j2wkhq7wv0zph2hMPDME++U=; Received: by nf.local (Postfix, from userid 501) id EEA321BAB8FBA; Thu, 16 Nov 2017 15:38:55 +0100 (CET) From: Felix Fietkau To: backports@vger.kernel.org Subject: [PATCH 3/4] backports: fix events with extack backport Date: Thu, 16 Nov 2017 15:38:54 +0100 Message-Id: <20171116143855.12307-3-nbd@nbd.name> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171116143855.12307-1-nbd@nbd.name> References: <20171116143855.12307-1-nbd@nbd.name> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The multicast group offset needs to be synced after registering the family, otherwise multicast messages will use the wrong id Signed-off-by: Felix Fietkau --- 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 f997b6c5..5e763084 100644 --- a/backport/compat/backport-4.12.c +++ b/backport/compat/backport-4.12.c @@ -224,6 +224,7 @@ int bp_extack_genl_register_family(struct genl_family *family) /* copy this since the family might access it directly */ family->attrbuf = copy->family.attrbuf; + family->mcgrp_offset = copy->family.mcgrp_offset; mutex_lock(&copies_mutex); list_add_tail(©->list, &copies_list);