]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix potential unreleased lock
authorChengfeng Ye <cyeaa@connect.ust.hk>
Fri, 27 Aug 2021 07:41:40 +0000 (00:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 27 Aug 2021 16:45:59 +0000 (09:45 -0700)
commit4f95402eda05fc9a1e8aa81a3a93598862ec1acd
treed67517396aaae216c4bbc0b21a4479c0385ff04a
parent624df3ababae0b41797f8833ae69ae68fb1d989d
selftests/bpf: Fix potential unreleased lock

This lock is not released if the program
return at the patched branch.

Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210827074140.118671-1-cyeaa@connect.ust.hk
tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c