Alexander Potapenko d515684d78 ipv6: make sure to initialize sockc.tsflags before first use
In the case udp_sk(sk)->pending is AF_INET6, udpv6_sendmsg() would
jump to do_append_data, skipping the initialization of sockc.tsflags.
Fix the problem by moving sockc.tsflags initialization earlier.

The bug was detected with KMSAN.

Fixes: c14ac9451c34 ("sock: enable timestamping using control messages")
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-22 12:40:22 -07:00
..
2016-09-10 23:12:51 -07:00
2017-02-15 11:04:11 +01:00
2016-12-25 17:21:23 +01:00
2016-12-29 12:05:49 -05:00
2017-02-08 13:12:22 -05:00
2016-06-27 15:06:17 -04:00
2017-03-13 21:55:47 -07:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2017-02-15 11:04:11 +01:00