diff --git a/net/lnet/lnet/api-ni.c b/net/lnet/lnet/api-ni.c index c33cd1f..47f4f2a 100644 --- a/net/lnet/lnet/api-ni.c +++ b/net/lnet/lnet/api-ni.c @@ -2906,6 +2906,7 @@ int lnet_dyn_del_ni(struct lnet_ioctl_config_ni *conf) net = lnet_get_net_locked(net_id); if (!net) { + lnet_net_unlock(0); rc = -EINVAL; goto out; }