From: nikita Date: Thu, 2 Nov 2006 21:43:46 +0000 (+0000) Subject: mdd: initialize mdd->mdd_txn_cb.dtc_linkage to avoid crash in error handling path... X-Git-Tag: v1_8_0_110~486^2~256 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=11c10f556d8f211b0e778c7cef041e2e96ac67a9;p=fs%2Flustre-release.git mdd: initialize mdd->mdd_txn_cb.dtc_linkage to avoid crash in error handling path (bug found by Elena). --- 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); }