Whamcloud - gitweb
LU-7078 llite: reset md->lmv to NULL 82/16382/3
authorwang di <di.wang@intel.com>
Thu, 10 Sep 2015 04:06:11 +0000 (21:06 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Sep 2015 03:45:22 +0000 (03:45 +0000)
commitab074f434b198c86872954402b94857d7cec38c4
tree90bef64bd87afe7236a3d4b6554abbda2ab73a78
parent654bbf7fcc7a4c83d41e70d728e971eaed7994fe
LU-7078 llite: reset md->lmv to NULL

ll_update_lsm_md() should reset md->lmv to NULL
right after it is assigned to lli_lsm_md, otherwise
it might be double freed if failure happens.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I4f069e3445a957860c2853c6f32104885edc33fa
Reviewed-on: http://review.whamcloud.com/16382
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_lib.c