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

Message ID 1446118742-22809-6-git-send-email-aschultz@tpip.net
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Andreas Schultz Oct. 29, 2015, 11:39 a.m. UTC
Signed-off-by: Andreas Schultz <aschultz@tpip.net>
---
 gtp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch
diff mbox

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: