]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: filter: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 14 Aug 2018 16:20:21 +0000 (11:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 17:11:26 +0000 (10:11 -0700)
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 <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c

index 15b9d2df92caf2842e55e0f175982788034cf0bf..fd423ce3da342e5ff9c26b03d12820cd30b8ca29 100644 (file)
@@ -7235,6 +7235,7 @@ sk_reuseport_is_valid_access(int off, int size,
        case offsetof(struct sk_reuseport_md, eth_protocol):
                if (size < FIELD_SIZEOF(struct sk_buff, protocol))
                        return false;
+               /* fall through */
        case offsetof(struct sk_reuseport_md, ip_protocol):
        case offsetof(struct sk_reuseport_md, bind_inany):
        case offsetof(struct sk_reuseport_md, len):