samples/bpf: Check the error of write() and read()
authorTaeung Song <treeze.taeung@gmail.com>
Wed, 4 Jul 2018 13:36:38 +0000 (22:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:12 +0000 (13:09 +0200)
commitf599525df7f1b14bed0da75cd6065cb1742a74ff
tree0a5dac014f2f08c9b1c2b91b361af3edeea58d77
parent3bbb0484a7317707243306352ad5457f64104d68
samples/bpf: Check the error of write() and read()

[ Upstream commit 02a2f000a3629274bfad60bfc4de9edec49e63e7 ]

test_task_rename() and test_urandom_read()
can be failed during write() and read(),
So check the result of them.

Reviewed-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/bpf/test_overhead_user.c