]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix minor code bug in timestamping.txt
authorAhmad Fatoum <ahmad@a3f.at>
Sat, 8 Jul 2017 19:28:44 +0000 (21:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jul 2017 20:34:54 +0000 (13:34 -0700)
commit492b594b73bacaf3189c368150a11f6fd295e680
treec5e742e1695d69a338cc34a33364ed70e2371683
parent5ab35e5de9997f27e0b18ef2d6b71fa3f30e13d3
net: Fix minor code bug in timestamping.txt

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: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/timestamping.txt