diff options
author | David S. Miller <davem@davemloft.net> | 2017-10-10 05:11:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-10 05:11:09 +0200 |
commit | d93fa2ba64384a0bbee4ae7409d85fccb2cfcf14 (patch) | |
tree | 8e55d9d74f46ce13e4299d23c23c72b9306798c1 /tools | |
parent | ipv6: use rcu_dereference_bh() in ipv6_route_seq_next() (diff) | |
parent | Merge branch 'ppc-bundle' (bundle from Michael Ellerman) (diff) | |
download | linux-d93fa2ba64384a0bbee4ae7409d85fccb2cfcf14.tar.xz linux-d93fa2ba64384a0bbee4ae7409d85fccb2cfcf14.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/networking/timestamping/rxtimestamp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/networking/timestamping/rxtimestamp.c b/tools/testing/selftests/networking/timestamping/rxtimestamp.c index 00f286661dcd..dd4162fc0419 100644 --- a/tools/testing/selftests/networking/timestamping/rxtimestamp.c +++ b/tools/testing/selftests/networking/timestamping/rxtimestamp.c @@ -341,7 +341,7 @@ int main(int argc, char **argv) return 0; case 'n': t = atoi(optarg); - if (t > ARRAY_SIZE(test_cases)) + if (t >= ARRAY_SIZE(test_cases)) error(1, 0, "Invalid test case: %d", t); all_tests = false; test_cases[t].enabled = true; |