2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

selftests/net: Fix broken test case in psock_fanout

The error return falue form sock_fanout_open is -1, not zero.  One test
case was checking for 0 instead of -1.

Tested: Built and tested in clean client.
Signed-off-by: Mike Maloney <maloney@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Mike Maloney 2017-04-24 21:29:11 -04:00 committed by David S. Miller
parent 799dbe3e1c
commit 472ecf084a

View File

@ -305,7 +305,7 @@ static void test_unique_fanout_group_ids(void)
exit(1);
}
if (sock_fanout_open(PACKET_FANOUT_CPU, first_group_id)) {
if (sock_fanout_open(PACKET_FANOUT_CPU, first_group_id) != -1) {
fprintf(stderr, "ERROR: joined group with wrong type.\n");
exit(1);
}