Commit 48f9bcf9 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

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: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9892f9f6
...@@ -2155,7 +2155,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, ...@@ -2155,7 +2155,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net,
case SCTP_PARAM_SET_PRIMARY: case SCTP_PARAM_SET_PRIMARY:
if (ep->asconf_enable) if (ep->asconf_enable)
break; break;
goto fallthrough; goto unhandled;
case SCTP_PARAM_HOST_NAME_ADDRESS: case SCTP_PARAM_HOST_NAME_ADDRESS:
/* Tell the peer, we won't support this param. */ /* Tell the peer, we won't support this param. */
...@@ -2166,11 +2166,11 @@ static enum sctp_ierror sctp_verify_param(struct net *net, ...@@ -2166,11 +2166,11 @@ static enum sctp_ierror sctp_verify_param(struct net *net,
case SCTP_PARAM_FWD_TSN_SUPPORT: case SCTP_PARAM_FWD_TSN_SUPPORT:
if (ep->prsctp_enable) if (ep->prsctp_enable)
break; break;
goto fallthrough; goto unhandled;
case SCTP_PARAM_RANDOM: case SCTP_PARAM_RANDOM:
if (!ep->auth_enable) if (!ep->auth_enable)
goto fallthrough; goto unhandled;
/* SCTP-AUTH: Secion 6.1 /* SCTP-AUTH: Secion 6.1
* If the random number is not 32 byte long the association * If the random number is not 32 byte long the association
...@@ -2187,7 +2187,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, ...@@ -2187,7 +2187,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net,
case SCTP_PARAM_CHUNKS: case SCTP_PARAM_CHUNKS:
if (!ep->auth_enable) if (!ep->auth_enable)
goto fallthrough; goto unhandled;
/* SCTP-AUTH: Section 3.2 /* SCTP-AUTH: Section 3.2
* The CHUNKS parameter MUST be included once in the INIT or * The CHUNKS parameter MUST be included once in the INIT or
...@@ -2203,7 +2203,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, ...@@ -2203,7 +2203,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net,
case SCTP_PARAM_HMAC_ALGO: case SCTP_PARAM_HMAC_ALGO:
if (!ep->auth_enable) if (!ep->auth_enable)
goto fallthrough; goto unhandled;
hmacs = (struct sctp_hmac_algo_param *)param.p; hmacs = (struct sctp_hmac_algo_param *)param.p;
n_elt = (ntohs(param.p->length) - n_elt = (ntohs(param.p->length) -
...@@ -2226,7 +2226,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net, ...@@ -2226,7 +2226,7 @@ static enum sctp_ierror sctp_verify_param(struct net *net,
retval = SCTP_IERROR_ABORT; retval = SCTP_IERROR_ABORT;
} }
break; break;
fallthrough: unhandled:
default: default:
pr_debug("%s: unrecognized param:%d for chunk:%d\n", pr_debug("%s: unrecognized param:%d for chunk:%d\n",
__func__, ntohs(param.p->type), cid); __func__, ntohs(param.p->type), cid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment