summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAntoine Tenart <atenart@kernel.org>2021-08-03 12:00:16 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-12 13:22:07 +0200
commita45ee8ed0c7df7d459e8134feac9a5287dc9e9c6 (patch)
tree84c146bb14bb4f416d82549ae8dba564c3de0309 /include
parentf87be69b7fe92bc037be4302b4b579a83f2e797c (diff)
downloadlinux-stable-a45ee8ed0c7df7d459e8134feac9a5287dc9e9c6.tar.gz
linux-stable-a45ee8ed0c7df7d459e8134feac9a5287dc9e9c6.tar.bz2
linux-stable-a45ee8ed0c7df7d459e8134feac9a5287dc9e9c6.zip
net: ipv6: fix returned variable type in ip6_skb_dst_mtu
[ Upstream commit 4039146777a91e1576da2bf38e0d8a1061a1ae47 ] The patch fixing the returned value of ip6_skb_dst_mtu (int -> unsigned int) was rebased between its initial review and the version applied. In the meantime fade56410c22 was applied, which added a new variable (int) used as the returned value. This lead to a mismatch between the function prototype and the variable used as the return value. Fixes: 40fc3054b458 ("net: ipv6: fix return value of ip6_skb_dst_mtu") Cc: Vadim Fedorenko <vfedorenko@novek.ru> Signed-off-by: Antoine Tenart <atenart@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip6_route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h
index 42fe4e1b6a8c..44969d03debf 100644
--- a/include/net/ip6_route.h
+++ b/include/net/ip6_route.h
@@ -264,7 +264,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
static inline unsigned int ip6_skb_dst_mtu(struct sk_buff *skb)
{
- int mtu;
+ unsigned int mtu;
struct ipv6_pinfo *np = skb->sk && !dev_recursion_level() ?
inet6_sk(skb->sk) : NULL;