mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 21:47:28 +08:00
This patch fixes the validation order in netdev ioctl handlers for Bluetooth, IEEE 802.15.4, and packet radio devices. The command type should be validated before checking the argument pointer to return the correct error code (-ENOTTY vs -EINVAL). Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>