]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Fix deadlock in elf_cntl
authorHeather McIntyre <hsm2@rice.edu>
Fri, 12 Jul 2024 22:32:34 +0000 (18:32 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 20 Aug 2024 21:13:01 +0000 (17:13 -0400)
commit97b72c00603d1221c69ed22a8345817dde1685f3
treea841bea45787a80fcd3fb2bd2fcfc3a93979e56c
parentf3de289b5081bdcea6f867f1d87f006daf5a02ce
libelf: Fix deadlock in elf_cntl

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

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