From 11c10f556d8f211b0e778c7cef041e2e96ac67a9 Mon Sep 17 00:00:00 2001 From: nikita Date: Thu, 2 Nov 2006 21:43:46 +0000 Subject: [PATCH] mdd: initialize mdd->mdd_txn_cb.dtc_linkage to avoid crash in error handling path (bug found by Elena). --- lustre/mdd/mdd_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/mdd/mdd_device.c b/lustre/mdd/mdd_device.c index 7f7b6d6..06f9f79 100644 --- a/lustre/mdd/mdd_device.c +++ b/lustre/mdd/mdd_device.c @@ -63,6 +63,7 @@ static int mdd_device_init(const struct lu_env *env, struct lu_device *d, mdd->mdd_txn_cb.dtc_txn_stop = mdd_txn_stop_cb; mdd->mdd_txn_cb.dtc_txn_commit = mdd_txn_commit_cb; mdd->mdd_txn_cb.dtc_cookie = mdd; + INIT_LIST_HEAD(&mdd->mdd_txn_cb.dtc_linkage); rc = mdd_procfs_init(mdd, name); RETURN(rc); } -- 1.8.3.1