]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Increase MAX_NR_MAPS to 17 in test_verifier.c
authorMartin KaFai Lau <kafai@fb.com>
Thu, 18 Apr 2019 21:33:30 +0000 (14:33 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 18 Apr 2019 23:10:47 +0000 (16:10 -0700)
commit7fe475f6228968379f59422598754e54a73a73b0
treeef41039682fbd0ba21141b6797f1c810428e2353
parentaa1ccbf36f78f777008e3a43dec7b179b16d59b4
bpf: Increase MAX_NR_MAPS to 17 in test_verifier.c

map_fds[16] is the last one index-ed by fixup_map_array_small.
Hence, the MAX_NR_MAPS should be 17 instead.

Fixes: aa20a8a9935e ("bpf, selftest: test {rd, wr}only flags and direct value access")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_verifier.c