From: adilger Date: Mon, 22 Apr 2002 18:18:28 +0000 (+0000) Subject: Only put the ldlm connection if we are not connected locally. X-Git-Tag: 0.4.2~357 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5f2f3ebaaa91f2ffd4c739d53ad6d5bafdf38d07;p=fs%2Flustre-release.git Only put the ldlm connection if we are not connected locally. --- diff --git a/lustre/ldlm/ldlm_lockd.c b/lustre/ldlm/ldlm_lockd.c index 4e97c14..72a0622 100644 --- a/lustre/ldlm/ldlm_lockd.c +++ b/lustre/ldlm/ldlm_lockd.c @@ -265,7 +265,8 @@ static int ldlm_iocontrol(int cmd, struct obd_conn *conn, int len, void *karg, } out: - ptlrpc_put_connection(connection); + if (connection) + ptlrpc_put_connection(connection); return err; }