zephyr/drivers/bluetooth
Jordan Yates 322d4c1f98 bluetooth: hci: spi: avoid rxmsg re-use
Don't re-use the `rxmsg` buffer in the `bt_spi_send` function. This
buffer is still used by the RX thread after releasing the SPI semaphore.
The current re-use can result in buffer corruption if the RX thread is
swapped out as a result of the `k_sem_give`.

Moving the semaphore release later can result in deadlocks due to
buffer allocation being performed while holding the semaphore, so
instead just eliminate the re-use entirely.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-10-23 18:19:58 +02:00
..
hci bluetooth: hci: spi: avoid rxmsg re-use 2023-10-23 18:19:58 +02:00
CMakeLists.txt Bluetooth: Move crypto toolbox functions from smp.c to their own files 2022-11-10 09:28:28 +01:00
Kconfig drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
util.h