Skip to content
Commit bed6ab35 authored by Emil Dahl Juhl's avatar Emil Dahl Juhl Committed by Benjamin Cabé
Browse files

spi: rtio: fix using rx_bufs entries for tx_buf



Within spi_rtio_copy there'd be a case where the tx_buf pointer would
mistakenly get assigned the address of an rx buffer.
Specifically this would happen in the case where there are no rx buffers
provided, and as such this would lead to pontential nullptr dereferences.

Correct the mistake to let tx_buf correctly point to the provided tx
buffers.

Signed-off-by: default avatarEmil Dahl Juhl <emil@s16s.ai>
parent 827a4f73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment