Whamcloud - gitweb
LU-10454 mdd: check return value of lu_ucred() 07/30707/4
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 8 Jan 2018 14:28:27 +0000 (23:28 +0900)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 Jan 2018 06:19:05 +0000 (06:19 +0000)
commit45b3c7a05aac591b6b339bece4ff48306b29f00f
treecc5c70fe1108797cc68c8b7cb02e736e8effbd90
parentd649aad0adfc27d7a02ce62c91d35430177719c4
LU-10454 mdd: check return value of lu_ucred()

In mdd_changelog_data_store_by_fid() part of the function checked
for the return value of lu_ucred(), part of it did not. This lead
to NULL pointer dereferencing.

Signed-off-by: Quentin Bouget <quentin.bouget@cea.fr>
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Iefe9d10191e499aec94415fb6fe0d5d2064f86f0
Reviewed-on: https://review.whamcloud.com/30707
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/mdd/mdd_dir.c
lustre/mdd/mdd_object.c