rtio: Transactions assume valid next list nodes

Add an assert ensuring programming errors where the executor code
assumes there is a next node in the list for transaction/chained
submissions.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
Tom Burdick 2025-03-11 13:42:26 -05:00 committed by Benjamin Cabé
commit 079d9c34e4

View file

@ -84,6 +84,10 @@ void rtio_executor_submit(struct rtio *r)
"Expected chained or transaction flag, not both");
#endif
node = mpsc_pop(&iodev_sqe->r->sq);
__ASSERT(node != NULL,
"Expected a valid submission in the queue while in a transaction or chain");
next = CONTAINER_OF(node, struct rtio_iodev_sqe, q);
/* If the current submission was cancelled before submit,