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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| cyw43xxx.c | ||
| h4.c | ||
| h5.c | ||
| hci_b91.c | ||
| hci_esp32.c | ||
| hci_psoc6_bless.c | ||
| ipm_stm32wb.c | ||
| Kconfig | ||
| Kconfig.infineon | ||
| nrf53_support.c | ||
| rpmsg.c | ||
| slz_hci.c | ||
| spi.c | ||
| userchan.c | ||