]> git.baikalelectronics.ru Git - kernel.git/commit
net: socket: Fix missing break in switch statement
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 24 Apr 2019 15:31:24 +0000 (10:31 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Apr 2019 15:28:47 +0000 (11:28 -0400)
commitf268d06e8fd28cad44387c0a47c35f17836479a6
tree70e272de810b58a34b363267c7216143042583e7
parent373c96518ac996372c5cb5a4226462de37010c8e
net: socket: Fix missing break in switch statement

Add missing break statement in order to prevent the code from falling
through to cases SIOCGSTAMP_NEW and SIOCGSTAMPNS_NEW.

This bug was found thanks to the ongoing efforts to enable
-Wimplicit-fallthrough.

Fixes: d5bedf892fe7 ("net: socket: implement 64-bit timestamps")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c