From c330f3c9d58ce507b2111ab3744dbf71353374bc Mon Sep 17 00:00:00 2001 From: Li Xi Date: Wed, 29 Jan 2014 02:47:15 -0800 Subject: [PATCH] LU-4199 llite: Init lli_lmv_md field of struct ll_inode_info lli_lmv_md field of structure ll_inode_info is not inited to NULL, which causes lmv_read_entry() to crash the kernel when trying to access it. Signed-off-by: Li Xi Change-Id: I84e932a4246b4637d5ba240ea9193c8b347d62e4 Reviewed-on: http://review.whamcloud.com/9042 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Andreas Dilger --- lustre/llite/llite_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 7d2054c..2331a33 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -960,6 +960,7 @@ void ll_lli_init(struct ll_inode_info *lli) lli->lli_def_acl = NULL; spin_lock_init(&lli->lli_sa_lock); lli->lli_opendir_pid = 0; + lli->lli_lmv_md = NULL; } else { sema_init(&lli->lli_size_sem, 1); lli->lli_size_sem_owner = NULL; -- 1.8.3.1