Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: sctp: Rename fallthrough label to unhandled

fallthrough will become a pseudo reserved keyword so this only use of
fallthrough is better renamed to allow it.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Joe Perches and committed by
Linus Torvalds
48f9bcf9 9892f9f6

+6 -6
+6 -6
net/sctp/sm_make_chunk.c
··· 2155 2155 case SCTP_PARAM_SET_PRIMARY: 2156 2156 if (ep->asconf_enable) 2157 2157 break; 2158 - goto fallthrough; 2158 + goto unhandled; 2159 2159 2160 2160 case SCTP_PARAM_HOST_NAME_ADDRESS: 2161 2161 /* Tell the peer, we won't support this param. */ ··· 2166 2166 case SCTP_PARAM_FWD_TSN_SUPPORT: 2167 2167 if (ep->prsctp_enable) 2168 2168 break; 2169 - goto fallthrough; 2169 + goto unhandled; 2170 2170 2171 2171 case SCTP_PARAM_RANDOM: 2172 2172 if (!ep->auth_enable) 2173 - goto fallthrough; 2173 + goto unhandled; 2174 2174 2175 2175 /* SCTP-AUTH: Secion 6.1 2176 2176 * If the random number is not 32 byte long the association ··· 2187 2187 2188 2188 case SCTP_PARAM_CHUNKS: 2189 2189 if (!ep->auth_enable) 2190 - goto fallthrough; 2190 + goto unhandled; 2191 2191 2192 2192 /* SCTP-AUTH: Section 3.2 2193 2193 * The CHUNKS parameter MUST be included once in the INIT or ··· 2203 2203 2204 2204 case SCTP_PARAM_HMAC_ALGO: 2205 2205 if (!ep->auth_enable) 2206 - goto fallthrough; 2206 + goto unhandled; 2207 2207 2208 2208 hmacs = (struct sctp_hmac_algo_param *)param.p; 2209 2209 n_elt = (ntohs(param.p->length) - ··· 2226 2226 retval = SCTP_IERROR_ABORT; 2227 2227 } 2228 2228 break; 2229 - fallthrough: 2229 + unhandled: 2230 2230 default: 2231 2231 pr_debug("%s: unrecognized param:%d for chunk:%d\n", 2232 2232 __func__, ntohs(param.p->type), cid);