mirror of
https://github.com/apache/nuttx.git
synced 2026-05-10 15:30:25 +08:00
5ce2955e62
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>