]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Cleanup some file descriptors in test_maps
authorAnton Protopopov <a.s.protopopov@gmail.com>
Wed, 27 May 2020 18:56:57 +0000 (18:56 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 21:38:21 +0000 (14:38 -0700)
commitad31003c5ee3c5b311bf954a91079bf91de9cfdb
treeb4ced0e00beae26036791881c3503f2af563cac9
parent6b7d7f6fdb634d93cd8e8121a3cff1fe3386358b
selftests/bpf: Cleanup some file descriptors in test_maps

The test_map_rdonly and test_map_wronly tests should close file descriptors
which they open.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200527185700.14658-3-a.s.protopopov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_maps.c