From: Ahmad Fatoum <ah...@a3f.at> 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 <da...@davemloft.net> > Cc: netdev@vger.kernel.org > Signed-off-by: Ahmad Fatoum <ah...@a3f.at> Applied.