mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 23:19:25 +08: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>