Skip to content
Commit 9f138fa6 authored by Alexander Potapenko's avatar Alexander Potapenko Committed by David S. Miller
Browse files

net: initialize msg.msg_flags in recvfrom



KMSAN reports a use of uninitialized memory in put_cmsg() because
msg.msg_flags in recvfrom haven't been initialized properly.
The flag values don't affect the result on this path, but it's still a
good idea to initialize them explicitly.

Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8ddbb312
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment