Skip to content

Commit 4597b62

Browse files
GustavoARSilvadavem330
authored andcommitted
net: filter: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1472592 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 21f2706 commit 4597b62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/core/filter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7235,6 +7235,7 @@ sk_reuseport_is_valid_access(int off, int size,
72357235
case offsetof(struct sk_reuseport_md, eth_protocol):
72367236
if (size < FIELD_SIZEOF(struct sk_buff, protocol))
72377237
return false;
7238+
/* fall through */
72387239
case offsetof(struct sk_reuseport_md, ip_protocol):
72397240
case offsetof(struct sk_reuseport_md, bind_inany):
72407241
case offsetof(struct sk_reuseport_md, len):

0 commit comments

Comments
 (0)