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:40:34 +0000 (13:40 +0200)
commitb1d547f2f51ace1caa2573e357d571cf1321ccb9
treebbd8b3eae9a75f9609f3cf5006aa93af6c6dd03b
parent3ad66d67822d0f72bc2c4ff5a0879db1b2dd90bb
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