fou6: fix proto error handler argument type [Linux 5.0]

This Linux kernel change "fou6: fix proto error handler argument type" is included in the Linux 5.0 release. This change is authored by Paolo Abeni <pabeni [at]> on Thu Feb 21 17:43:58 2019 +0100. The commit for this change in Linux stable tree is 5de362d (patch).

fou6: fix proto error handler argument type

Last argument of gue6_err_proto_handler() has a wrong type annotation,
fix it and make sparse happy again.

Fixes: b8a51b38e4d4 ("fou, fou6: ICMP error handlers for FoU and GUE")
Signed-off-by: Paolo Abeni <[email protected]>
Acked-by: Stefano Brivio <[email protected]>
Signed-off-by: David S. Miller <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 net/ipv6/fou6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv6/fou6.c b/net/ipv6/fou6.c
index b858bd5..867474a 100644
--- a/net/ipv6/fou6.c
+++ b/net/ipv6/fou6.c
@@ -72,7 +72,7 @@ static int gue6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,

 static int gue6_err_proto_handler(int proto, struct sk_buff *skb,
                  struct inet6_skb_parm *opt,
-                 u8 type, u8 code, int offset, u32 info)
+                 u8 type, u8 code, int offset, __be32 info)
    const struct inet6_protocol *ipprot;

Leave a Reply

Your email address will not be published. Required fields are marked *