Skip to content
Snippets Groups Projects
user avatar
Ahmad Fatoum authored
Passing (void*)val instead of &val would make a pointer out of an integer
and cause sock_setsockopt to -EFAULT.

See tools/testing/selftests/networking/timestamping/timestamping.c
for a working example.

Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarAhmad Fatoum <ahmad@a3f.at>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
5e34fa23
History
Name Last commit Last update