]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:19 +0000 (13:42 +0200)
commitfd33ac568455c13727c364e908cae3916e38fbb6
tree860baa16448c10503a483df11c9b4af046fd0f2f
parent1d95afd5f78e5f9018c340eda88f750f6c269458
selftests/bpf: Fix potential unreleased lock

[ Upstream commit 47bb27a20d6ea22cd092c1fc2bb4fcecac374838 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c