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:
parent
99fecb2c33
commit
079d9c34e4
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue