[PATCH 5/6] gtp: update for Linux > 4.1+, genlmsg_end return should be ignored

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas Schultz aschultz at tpip.net
Thu Oct 29 11:39:01 UTC 2015


Signed-off-by: Andreas Schultz <aschultz at tpip.net>
---
 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:
-- 
2.5.0




More information about the OpenBSC mailing list