diff --git a/net/netdev/netdev_ioctl.c b/net/netdev/netdev_ioctl.c index b561c8f920..ed9ecf6645 100644 --- a/net/netdev/netdev_ioctl.c +++ b/net/netdev/netdev_ioctl.c @@ -763,6 +763,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd, if (dev == NULL) { + net_unlock(); return ret; }