nuttx/net/netdev
zhanghongyu 5ce2955e62 net/netdev: correct the ioctl command validation logic
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>
2026-01-15 19:59:40 +08:00
..
CMakeLists.txt net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
Kconfig add can/lin controller status 2024-10-09 08:39:14 +08:00
Make.defs net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
netdev.h devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
netdev_carrier.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
netdev_count.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdev_default.c netdev:When running, proto stack can exchange packets with device 2026-01-06 16:04:03 +08:00
netdev_findbyaddr.c net/netdev: Fix best prefix in findby 2026-01-08 22:45:16 +08:00
netdev_findbyindex.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdev_findbyname.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdev_foreach.c netdev_foreach.c: add lock protection during the traversal process 2026-01-02 00:00:55 +08:00
netdev_ifconf.c fix snprintf truncation warnings 2024-10-08 22:31:32 +08:00
netdev_input.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
netdev_iob.c net/netdev: Add netdev_iob_replace_l2 for netdev to avoid misuse 2025-12-09 07:56:20 -03:00
netdev_ioctl.c net/netdev: correct the ioctl command validation logic 2026-01-15 19:59:40 +08:00
netdev_ipv6.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
netdev_lladdrsize.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
netdev_lock.c net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
netdev_notify_recvcpu.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
netdev_register.c devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
netdev_stats.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
netdev_txnotify.c devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
netdev_unregister.c net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
netdev_verify.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdown_notifier.c net:modify check condition from IFF_UP to IFF_RUNNING in the sending process 2026-01-09 21:48:18 +08:00