net/tcp/netdev/mld: correct the netlock handling

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2022-02-03 15:23:52 +08:00
committed by Alan Carvalho de Assis
parent b04b2f1bc8
commit 56b5ae0640
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -375,6 +375,7 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
ifindex = get_ifindex();
if (ifindex < 0)
{
net_unlock();
return ifindex;
}