From patchwork Thu Oct 29 11:39:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schultz X-Patchwork-Id: 537800 X-Patchwork-Delegate: pablo@netfilter.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.osmocom.org (unknown [IPv6:2a01:4f8:191:444b::2:7]) by ozlabs.org (Postfix) with ESMTP id 17249140787 for ; Thu, 29 Oct 2015 22:39:44 +1100 (AEDT) Received: from lists.osmocom.org (lists.osmocom.org [144.76.43.76]) by lists.osmocom.org (Postfix) with ESMTP id E3D217A6B; Thu, 29 Oct 2015 11:39:42 +0000 (UTC) X-Original-To: openbsc@lists.osmocom.org Delivered-To: openbsc@lists.osmocom.org Received: from mail.tpip.net (mail.tpip.net [92.43.49.48]) by lists.osmocom.org (Postfix) with ESMTP id CBE0D7A57 for ; Thu, 29 Oct 2015 11:39:41 +0000 (UTC) Received: from office.tpip.net (office.tpip.net [92.43.51.2]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tpip.net (Postfix) with ESMTPS id EC2B64F417; Thu, 29 Oct 2015 11:39:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by office.tpip.net (Postfix) with ESMTP id ABD95A2F7B; Thu, 29 Oct 2015 12:39:12 +0100 (CET) Received: from office.tpip.net ([127.0.0.1]) by localhost (office.tpip.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id PiIU34GUfNJc; Thu, 29 Oct 2015 12:39:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by office.tpip.net (Postfix) with ESMTP id 76EA2A2F78; Thu, 29 Oct 2015 12:39:12 +0100 (CET) X-Virus-Scanned: amavisd-new at tpip.net Received: from office.tpip.net ([127.0.0.1]) by localhost (office.tpip.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qUzxeNs80_gI; Thu, 29 Oct 2015 12:39:12 +0100 (CET) Received: from alice.tpip.org (unknown [192.168.13.53]) by office.tpip.net (Postfix) with ESMTPSA id 0F871A2F7F; Thu, 29 Oct 2015 12:39:12 +0100 (CET) From: Andreas Schultz To: Harald Welte , Pablo Neira Ayuso Subject: [PATCH 5/6] gtp: update for Linux > 4.1+, genlmsg_end return should be ignored Date: Thu, 29 Oct 2015 12:39:01 +0100 Message-Id: <1446118742-22809-6-git-send-email-aschultz@tpip.net> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1446118742-22809-1-git-send-email-aschultz@tpip.net> References: <1446118742-22809-1-git-send-email-aschultz@tpip.net> X-BeenThere: openbsc@lists.osmocom.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Development of the OpenBSC GSM base station controller List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openbsc@lists.osmocom.org Errors-To: openbsc-bounces@lists.osmocom.org Sender: "OpenBSC" Signed-off-by: Andreas Schultz --- gtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtp.c b/gtp.c index 0d1b5ee..7fa9c38 100644 --- a/gtp.c +++ b/gtp.c @@ -1153,7 +1153,8 @@ gtp_genl_fill_info(struct sk_buff *skb, u32 snd_portid, u32 snd_seq, nla_put_u16(skb, GTPA_FLOW, pctx->flow))) goto nla_put_failure; - return genlmsg_end(skb, genlh); + genlmsg_end(skb, genlh); + return 0; nlmsg_failure: nla_put_failure: