INIT_LIST_HEAD(&c->c_dying_head);
INIT_LIST_HEAD(&c->c_imports);
INIT_LIST_HEAD(&c->c_exports);
+ INIT_LIST_HEAD(&c->c_sb_chain);
atomic_set(&c->c_refcount, 0);
ptlrpc_connection_addref(c);
spin_lock_init(&c->c_lock);
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)) {