diff --git a/net/lnet/lnet/peer.c b/net/lnet/lnet/peer.c index 2fc5dfc..24a5cd3 100644 --- a/net/lnet/lnet/peer.c +++ b/net/lnet/lnet/peer.c @@ -494,7 +494,9 @@ void lnet_peer_uninit(void) } lnet_net_lock(LNET_LOCK_EX); - lnet_peer_ni_del_locked(lpni); + + rc = lnet_peer_ni_del_locked(lpni); + lnet_net_unlock(LNET_LOCK_EX); out: