From: Lukas Sismis Date: Sat, 23 Mar 2024 22:11:16 +0000 (+0100) Subject: dpdk: fix thread slot assignment X-Git-Tag: suricata-8.0.0-beta1~1519 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28ac3c20977c3bdaa1ee50f1e542e77bbe1fed78;p=thirdparty%2Fsuricata.git dpdk: fix thread slot assignment Commit 5592ec07 introduced a bug where ptv->slot was assigned with the current one instead of the next one in the list. This caused a Suricata crash in the DPDK mode. Ticket: 6877 --- diff --git a/src/source-dpdk.c b/src/source-dpdk.c index 6bf5917c32..d6720fa831 100644 --- a/src/source-dpdk.c +++ b/src/source-dpdk.c @@ -568,7 +568,7 @@ static TmEcode ReceiveDPDKLoop(ThreadVars *tv, void *data, void *slot) { SCEnter(); DPDKThreadVars *ptv = (DPDKThreadVars *)data; - ptv->slot = (TmSlot *)slot; + ptv->slot = ((TmSlot *)slot)->slot_next; TmEcode ret = ReceiveDPDKLoopInit(tv, ptv); if (ret != TM_ECODE_OK) { SCReturnInt(ret);