Whamcloud - gitweb
LU-4199 llite: Init lli_lmv_md field of struct ll_inode_info 42/9042/2
authorLi Xi <lixi@ddn.com>
Wed, 29 Jan 2014 10:47:15 +0000 (02:47 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 1 Mar 2014 02:34:56 +0000 (02:34 +0000)
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 <lixi@ddn.com>
Change-Id: I84e932a4246b4637d5ba240ea9193c8b347d62e4
Reviewed-on: http://review.whamcloud.com/9042
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/llite/llite_lib.c

index 7d2054c..2331a33 100644 (file)
@@ -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;