From e5aaafa574796db0b8ff0a09666821a3bb7a1f6a Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 22 Aug 2005 11:21:59 +0000 Subject: [PATCH] while sanity test60 uninitialized llog_cookie in llog_test_4() can invoke assertion in llog_cat_current_log() --- lustre/obdclass/llog_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/llog_test.c b/lustre/obdclass/llog_test.c index f6d86a7..afbe973 100644 --- a/lustre/obdclass/llog_test.c +++ b/lustre/obdclass/llog_test.c @@ -231,13 +231,13 @@ static int llog_test_4(struct obd_device *obd) char name[10]; int rc, i, buflen; struct llog_mini_rec lmr; - struct llog_cookie cookie; + struct llog_cookie cookie={0}; struct llog_ctxt *ctxt; int num_recs = 0; char *buf; struct llog_rec_hdr rec; ENTRY; - + ctxt = llog_get_context(&obd->obd_llogs, LLOG_TEST_ORIG_CTXT); lmr.lmr_hdr.lrh_len = lmr.lmr_tail.lrt_len = LLOG_MIN_REC_SIZE; lmr.lmr_hdr.lrh_type = 0xf00f00; -- 1.8.3.1