From: Ahmad Fatoum
Date: Sat, 8 Jul 2017 21:28:44 +0200
> 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
>
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
Cc: netdev@vger.kernel.org
Signed-off-by: Ahmad Fatoum
---
Documentation