]> git.karo-electronics.de Git - karo-tx-linux.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)
commit5e34fa23ced16f03fe163d3f31fddcae91c3f2fc
treec5e742e1695d69a338cc34a33364ed70e2371683
parentf4e27944f9cf9a94dd9b37a834512586c1f1a5d2
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