mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 12:49:00 +00:00
Move the NULL check for radio pointer before the DEBUGASSERT that dereferences it. Previously DEBUGASSERT(radio->r_dev.d_lltype == ...) was executed before verifying radio != NULL, which would crash when the device is not found. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com> |
||
|---|---|---|
| .. | ||
| bluetooth.h | ||
| bluetooth_callback.c | ||
| bluetooth_conn.c | ||
| bluetooth_container.c | ||
| bluetooth_finddev.c | ||
| bluetooth_initialize.c | ||
| bluetooth_input.c | ||
| bluetooth_poll.c | ||
| bluetooth_recvmsg.c | ||
| bluetooth_sendmsg.c | ||
| bluetooth_sockif.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Make.defs | ||