diff options
-rw-r--r-- | net/ipv6/ah6.c | 1 | ||||
-rw-r--r-- | net/ipv6/exthdrs.c | 1 | ||||
-rw-r--r-- | net/ipv6/icmp.c | 6 | ||||
-rw-r--r-- | net/ipv6/ip6_fib.c | 4 | ||||
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 1 | ||||
-rw-r--r-- | net/ipv6/ip6mr.c | 1 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_nat_l3proto_ipv6.c | 3 | ||||
-rw-r--r-- | net/ipv6/raw.c | 4 | ||||
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 3 | ||||
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 1 |
10 files changed, 19 insertions, 6 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c index 7802b72196f3..37bb33fbc742 100644 --- a/net/ipv6/ah6.c +++ b/net/ipv6/ah6.c | |||
@@ -271,6 +271,7 @@ static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir) | |||
271 | case NEXTHDR_DEST: | 271 | case NEXTHDR_DEST: |
272 | if (dir == XFRM_POLICY_OUT) | 272 | if (dir == XFRM_POLICY_OUT) |
273 | ipv6_rearrange_destopt(iph, exthdr.opth); | 273 | ipv6_rearrange_destopt(iph, exthdr.opth); |
274 | /* fall through */ | ||
274 | case NEXTHDR_HOP: | 275 | case NEXTHDR_HOP: |
275 | if (!zero_out_mutable_opts(exthdr.opth)) { | 276 | if (!zero_out_mutable_opts(exthdr.opth)) { |
276 | net_dbg_ratelimited("overrun %sopts\n", | 277 | net_dbg_ratelimited("overrun %sopts\n", |
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 95516138e861..7835dea930b4 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c | |||
@@ -89,6 +89,7 @@ static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff) | |||
89 | */ | 89 | */ |
90 | if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) | 90 | if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) |
91 | break; | 91 | break; |
92 | /* fall through */ | ||
92 | case 2: /* send ICMP PARM PROB regardless and drop packet */ | 93 | case 2: /* send ICMP PARM PROB regardless and drop packet */ |
93 | icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); | 94 | icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); |
94 | return false; | 95 | return false; |
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 4e52d52a6752..6ae5dd3f4d0d 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -864,10 +864,8 @@ static int icmpv6_rcv(struct sk_buff *skb) | |||
864 | goto discard_it; | 864 | goto discard_it; |
865 | hdr = icmp6_hdr(skb); | 865 | hdr = icmp6_hdr(skb); |
866 | 866 | ||
867 | /* | 867 | /* to notify */ |
868 | * Drop through to notify | 868 | /* fall through */ |
869 | */ | ||
870 | |||
871 | case ICMPV6_DEST_UNREACH: | 869 | case ICMPV6_DEST_UNREACH: |
872 | case ICMPV6_TIME_EXCEED: | 870 | case ICMPV6_TIME_EXCEED: |
873 | case ICMPV6_PARAMPROB: | 871 | case ICMPV6_PARAMPROB: |
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 548af48212fc..1ada9672d198 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c | |||
@@ -1780,6 +1780,7 @@ static int fib6_walk_continue(struct fib6_walker *w) | |||
1780 | } | 1780 | } |
1781 | w->state = FWS_L; | 1781 | w->state = FWS_L; |
1782 | #endif | 1782 | #endif |
1783 | /* fall through */ | ||
1783 | case FWS_L: | 1784 | case FWS_L: |
1784 | left = rcu_dereference_protected(fn->left, 1); | 1785 | left = rcu_dereference_protected(fn->left, 1); |
1785 | if (left) { | 1786 | if (left) { |
@@ -1788,6 +1789,7 @@ static int fib6_walk_continue(struct fib6_walker *w) | |||
1788 | continue; | 1789 | continue; |
1789 | } | 1790 | } |
1790 | w->state = FWS_R; | 1791 | w->state = FWS_R; |
1792 | /* fall through */ | ||
1791 | case FWS_R: | 1793 | case FWS_R: |
1792 | right = rcu_dereference_protected(fn->right, 1); | 1794 | right = rcu_dereference_protected(fn->right, 1); |
1793 | if (right) { | 1795 | if (right) { |
@@ -1797,6 +1799,7 @@ static int fib6_walk_continue(struct fib6_walker *w) | |||
1797 | } | 1799 | } |
1798 | w->state = FWS_C; | 1800 | w->state = FWS_C; |
1799 | w->leaf = rcu_dereference_protected(fn->leaf, 1); | 1801 | w->leaf = rcu_dereference_protected(fn->leaf, 1); |
1802 | /* fall through */ | ||
1800 | case FWS_C: | 1803 | case FWS_C: |
1801 | if (w->leaf && fn->fn_flags & RTN_RTINFO) { | 1804 | if (w->leaf && fn->fn_flags & RTN_RTINFO) { |
1802 | int err; | 1805 | int err; |
@@ -1815,6 +1818,7 @@ static int fib6_walk_continue(struct fib6_walker *w) | |||
1815 | } | 1818 | } |
1816 | skip: | 1819 | skip: |
1817 | w->state = FWS_U; | 1820 | w->state = FWS_U; |
1821 | /* fall through */ | ||
1818 | case FWS_U: | 1822 | case FWS_U: |
1819 | if (fn == w->root) | 1823 | if (fn == w->root) |
1820 | return 0; | 1824 | return 0; |
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 825548680b1e..4212879ff35e 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
@@ -593,6 +593,7 @@ ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
593 | case NDISC_REDIRECT: | 593 | case NDISC_REDIRECT: |
594 | rel_type = ICMP_REDIRECT; | 594 | rel_type = ICMP_REDIRECT; |
595 | rel_code = ICMP_REDIR_HOST; | 595 | rel_code = ICMP_REDIR_HOST; |
596 | /* fall through */ | ||
596 | default: | 597 | default: |
597 | return 0; | 598 | return 0; |
598 | } | 599 | } |
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index f5500f5444e9..59fad81e5f7a 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -1722,6 +1722,7 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, uns | |||
1722 | case MRT6_ADD_MFC: | 1722 | case MRT6_ADD_MFC: |
1723 | case MRT6_DEL_MFC: | 1723 | case MRT6_DEL_MFC: |
1724 | parent = -1; | 1724 | parent = -1; |
1725 | /* fall through */ | ||
1725 | case MRT6_ADD_MFC_PROXY: | 1726 | case MRT6_ADD_MFC_PROXY: |
1726 | case MRT6_DEL_MFC_PROXY: | 1727 | case MRT6_DEL_MFC_PROXY: |
1727 | if (optlen < sizeof(mfc)) | 1728 | if (optlen < sizeof(mfc)) |
diff --git a/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c b/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c index 46d6dba50698..1d2fb9267d6f 100644 --- a/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c +++ b/net/ipv6/netfilter/nf_nat_l3proto_ipv6.c | |||
@@ -290,7 +290,8 @@ nf_nat_ipv6_fn(void *priv, struct sk_buff *skb, | |||
290 | else | 290 | else |
291 | return NF_ACCEPT; | 291 | return NF_ACCEPT; |
292 | } | 292 | } |
293 | /* Fall thru... (Only ICMPs can be IP_CT_IS_REPLY) */ | 293 | /* Only ICMPs can be IP_CT_IS_REPLY: */ |
294 | /* fall through */ | ||
294 | case IP_CT_NEW: | 295 | case IP_CT_NEW: |
295 | /* Seen it before? This can happen for loopback, retrans, | 296 | /* Seen it before? This can happen for loopback, retrans, |
296 | * or local packets. | 297 | * or local packets. |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index e4462b0ff801..761a473a07c5 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -1055,6 +1055,7 @@ static int rawv6_setsockopt(struct sock *sk, int level, int optname, | |||
1055 | if (optname == IPV6_CHECKSUM || | 1055 | if (optname == IPV6_CHECKSUM || |
1056 | optname == IPV6_HDRINCL) | 1056 | optname == IPV6_HDRINCL) |
1057 | break; | 1057 | break; |
1058 | /* fall through */ | ||
1058 | default: | 1059 | default: |
1059 | return ipv6_setsockopt(sk, level, optname, optval, optlen); | 1060 | return ipv6_setsockopt(sk, level, optname, optval, optlen); |
1060 | } | 1061 | } |
@@ -1077,6 +1078,7 @@ static int compat_rawv6_setsockopt(struct sock *sk, int level, int optname, | |||
1077 | if (optname == IPV6_CHECKSUM || | 1078 | if (optname == IPV6_CHECKSUM || |
1078 | optname == IPV6_HDRINCL) | 1079 | optname == IPV6_HDRINCL) |
1079 | break; | 1080 | break; |
1081 | /* fall through */ | ||
1080 | default: | 1082 | default: |
1081 | return compat_ipv6_setsockopt(sk, level, optname, | 1083 | return compat_ipv6_setsockopt(sk, level, optname, |
1082 | optval, optlen); | 1084 | optval, optlen); |
@@ -1138,6 +1140,7 @@ static int rawv6_getsockopt(struct sock *sk, int level, int optname, | |||
1138 | if (optname == IPV6_CHECKSUM || | 1140 | if (optname == IPV6_CHECKSUM || |
1139 | optname == IPV6_HDRINCL) | 1141 | optname == IPV6_HDRINCL) |
1140 | break; | 1142 | break; |
1143 | /* fall through */ | ||
1141 | default: | 1144 | default: |
1142 | return ipv6_getsockopt(sk, level, optname, optval, optlen); | 1145 | return ipv6_getsockopt(sk, level, optname, optval, optlen); |
1143 | } | 1146 | } |
@@ -1160,6 +1163,7 @@ static int compat_rawv6_getsockopt(struct sock *sk, int level, int optname, | |||
1160 | if (optname == IPV6_CHECKSUM || | 1163 | if (optname == IPV6_CHECKSUM || |
1161 | optname == IPV6_HDRINCL) | 1164 | optname == IPV6_HDRINCL) |
1162 | break; | 1165 | break; |
1166 | /* fall through */ | ||
1163 | default: | 1167 | default: |
1164 | return compat_ipv6_getsockopt(sk, level, optname, | 1168 | return compat_ipv6_getsockopt(sk, level, optname, |
1165 | optval, optlen); | 1169 | optval, optlen); |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 64d94afa427f..ae83615b7f6d 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1577,8 +1577,9 @@ do_time_wait: | |||
1577 | refcounted = false; | 1577 | refcounted = false; |
1578 | goto process; | 1578 | goto process; |
1579 | } | 1579 | } |
1580 | /* Fall through to ACK */ | ||
1581 | } | 1580 | } |
1581 | /* to ACK */ | ||
1582 | /* fall through */ | ||
1582 | case TCP_TW_ACK: | 1583 | case TCP_TW_ACK: |
1583 | tcp_v6_timewait_ack(sk, skb); | 1584 | tcp_v6_timewait_ack(sk, skb); |
1584 | break; | 1585 | break; |
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 11d1314ab6c5..4ed9f8cc3b6a 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -152,6 +152,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl, int reverse) | |||
152 | switch (nexthdr) { | 152 | switch (nexthdr) { |
153 | case NEXTHDR_FRAGMENT: | 153 | case NEXTHDR_FRAGMENT: |
154 | onlyproto = 1; | 154 | onlyproto = 1; |
155 | /* fall through */ | ||
155 | case NEXTHDR_ROUTING: | 156 | case NEXTHDR_ROUTING: |
156 | case NEXTHDR_HOP: | 157 | case NEXTHDR_HOP: |
157 | case NEXTHDR_DEST: | 158 | case NEXTHDR_DEST: |