nuttx/net/bluetooth
zhanghongyu a0b8969636 net/bluetooth: fix null pointer dereference in bluetooth_sendmsg
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>
2026-04-13 08:46:57 -03:00
..
bluetooth.h net: make the sendmsg param type consistent with posix specification 2026-01-16 21:11:39 +08:00
bluetooth_callback.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
bluetooth_conn.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
bluetooth_container.c net/bluetooth: replace net_lock with conn_lock and conn_lock_dev 2026-01-02 07:48:06 -03:00
bluetooth_finddev.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
bluetooth_initialize.c net/bufpool: Call init automatically on alloc 2025-01-07 22:00:21 +08:00
bluetooth_input.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
bluetooth_poll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
bluetooth_recvmsg.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
bluetooth_sendmsg.c net/bluetooth: fix null pointer dereference in bluetooth_sendmsg 2026-04-13 08:46:57 -03:00
bluetooth_sockif.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00