From a19e7ea08d1459b9465ab87dca70589129c06312 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Sat, 29 Dec 2007 03:02:19 +0000 Subject: [PATCH] Branch b1_6 b=13752 i=shadow i=adilger Initialize list node before reference. --- lustre/ptlrpc/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/ptlrpc/connection.c b/lustre/ptlrpc/connection.c index 3d548a2..c12c668 100644 --- a/lustre/ptlrpc/connection.c +++ b/lustre/ptlrpc/connection.c @@ -103,6 +103,8 @@ struct ptlrpc_connection *ptlrpc_get_connection(lnet_process_id_t peer, atomic_set(&c->c_refcount, 1); c->c_peer = peer; c->c_self = self; + INIT_HLIST_NODE(&c->c_hash); + INIT_LIST_HEAD(&c->c_link); if (uuid != NULL) obd_str2uuid(&c->c_remote_uuid, uuid->uuid); -- 1.8.3.1