Whamcloud - gitweb
LU-9769 lnet: Fix lost lock
[fs/lustre-release.git] / lnet / lnet / api-ni.c
index e912e58..4341d99 100644 (file)
@@ -2556,6 +2556,7 @@ lnet_dyn_del_net(__u32 net_id)
 
        net = lnet_get_net_locked(net_id);
        if (net == NULL) {
+               lnet_net_unlock(0);
                rc = -EINVAL;
                goto out;
        }