Whamcloud - gitweb
Only put the ldlm connection if we are not connected locally.
authoradilger <adilger>
Mon, 22 Apr 2002 18:18:28 +0000 (18:18 +0000)
committeradilger <adilger>
Mon, 22 Apr 2002 18:18:28 +0000 (18:18 +0000)
lustre/ldlm/ldlm_lockd.c

index 4e97c14..72a0622 100644 (file)
@@ -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;
 }