Whamcloud - gitweb
- Comment out put_connection until we resolve the dep issue
[fs/lustre-release.git] / lustre / ptlrpc / connection.c
index 7a1d47b..0307ecb 100644 (file)
@@ -109,6 +109,11 @@ int ptlrpc_put_connection(struct ptlrpc_connection *c)
         int rc = 0;
         ENTRY;
 
+        if (c == NULL) {
+                CERROR("NULL connection\n");
+                RETURN(0);
+        }
+
         CDEBUG(D_INFO, "connection=%p refcount %d\n",
                c, atomic_read(&c->c_refcount) - 1);
         if (atomic_dec_and_test(&c->c_refcount)) {