]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Fix deadlock in elf_cntl
authorHeather McIntyre <hsm2@rice.edu>
Tue, 10 Oct 2023 13:42:48 +0000 (15:42 +0200)
committerAaron Merey <amerey@redhat.com>
Tue, 4 Jun 2024 19:08:55 +0000 (15:08 -0400)
commitcdf0657d69b2b0cd0ba2609b1a0b9a25f9b9763b
treef2238ba33fb6a6bcacaeef83a03d492259eef64a
parentfdf452658f1962fbb781a130969cc74f9f0c56a7
libelf: Fix deadlock in elf_cntl

* libelf/elf_cntl.c (elf_cntl): Move rwlock_wrlock, rwlock_unlock,
inside case switch statements.

Signed-off-by: Heather S. McIntyre <hsm2@rice.edu>
Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/elf_cntl.c