]> git.ipfire.org Git - thirdparty/suricata.git/commit
netmap: Release lock to avoid deadlock
authorJeff Lucovsky <jeff.lucovsky@corelight.com>
Thu, 8 Feb 2024 14:12:47 +0000 (09:12 -0500)
committerVictor Julien <victor@inliniac.net>
Thu, 15 Feb 2024 14:34:05 +0000 (15:34 +0100)
commit912b1bdca60daec3b101964da98f2855ee4421e7
treecfef0e27f79a72913f0f5a105cb989bf61542c61
parente41018a80e9cc0f6f0990701434d2d13119f8454
netmap: Release lock to avoid deadlock

Issue: 6755

When NetmapOpen encounters an error opening the netmap device, it'll
retry a bit. When the retry limit is reached, it'll shutdown Suricata.

This commit ensures that the device list lock is not held when before
closing all open devices before terminating Suricata.

(cherry picked from commit 364adeeb0442592ceea4d329622ca5fe34bf31fd)
src/source-netmap.c