summaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-02-03 20:25:31 -0800
committerDavid S. Miller <davem@davemloft.net>2019-02-03 20:25:31 -0800
commitff7653f94b523d5d87f2f00cbf21a9d9f6de889c (patch)
tree3c9cd6f8a7021b91fc17a1f119c2e10b46c060ab /net/core/sock.c
parent303a339f30a9441c4695d3d2cc78f1b33cd959ff (diff)
downloadlinux-ff7653f94b523d5d87f2f00cbf21a9d9f6de889c.tar.gz
linux-ff7653f94b523d5d87f2f00cbf21a9d9f6de889c.tar.bz2
linux-ff7653f94b523d5d87f2f00cbf21a9d9f6de889c.zip
net: Fix fall through warning in y2038 tstamp changes.
net/core/sock.c: In function 'sock_setsockopt': net/core/sock.c:914:3: warning: this statement may fall through [-Wimplicit-fallthrough=] sock_set_flag(sk, SOCK_TSTAMP_NEW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/core/sock.c:915:2: note: here case SO_TIMESTAMPING_OLD: ^~~~ Fixes: 9718475e6908 ("socket: Add SO_TIMESTAMPING_NEW") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index a8904ae40713..71ded4d8025c 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -912,6 +912,7 @@ set_rcvbuf:
case SO_TIMESTAMPING_NEW:
sock_set_flag(sk, SOCK_TSTAMP_NEW);
+ /* fall through */
case SO_TIMESTAMPING_OLD:
if (val & ~SOF_TIMESTAMPING_MASK) {
ret = -EINVAL;