From patchwork Mon Nov 20 18:01:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 10066859 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 CD25E602B7 for ; Mon, 20 Nov 2017 18:01:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5D092937B for ; Mon, 20 Nov 2017 18:01:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAB36293B6; Mon, 20 Nov 2017 18:01:37 +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 2F0BB2937B for ; Mon, 20 Nov 2017 18:01:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751945AbdKTSBf (ORCPT ); Mon, 20 Nov 2017 13:01:35 -0500 Received: from nbd.name ([46.4.11.11]:58074 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbdKTSBe (ORCPT ); Mon, 20 Nov 2017 13:01:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NU4jUfcw7o8mULKvDltoZog1tXAjfROFNHEyfy0qgpw=; b=M34I+7YmiN2JAGycKaWEs172Y4 wW0TigkFyVlcr6NkMtJSvDFAwoWnIZyG6yU+B5atQeiRex8ne/THl7x0b5TlDX2knYVnSllKyDdO/ ff3O+GZd22JllSxJkNsXwzEhP0iDq8kU117XJve9Xx/EMQ5LBXDozpHakEyRMK7z6Bi0=; Received: by nf.local (Postfix, from userid 501) id 85B2F1BB7ACB5; Mon, 20 Nov 2017 19:01:32 +0100 (CET) From: Felix Fietkau 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 Message-Id: <20171120180132.12531-1-nbd@nbd.name> X-Mailer: git-send-email 2.14.2 Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is filled with family->id, which needs to be set after registering the copy. 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 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;