Whamcloud - gitweb
LU-11654 mdd: check ucred before using it 38/33638/2
authorJinshan Xiong <jinshan.xiong@gmail.com>
Sat, 10 Nov 2018 20:06:16 +0000 (12:06 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 17 Nov 2018 01:25:42 +0000 (01:25 +0000)
commitebf742028b57a88817b26d6fb7748110ec15d31c
tree4d99bb61d45f29227558929455c280a29475e3ab
parentb0797d7ed4e6551d229620b45295d9387b3202bd
LU-11654 mdd: check ucred before using it

On the code path of client eviction, lu_ucred in mdd_close() is not
initialized so we need to check it before trying to dereference it.

Signed-off-by: Jinshan Xiong <jinshan.xiong@uber.com>
Change-Id: I51b2a30e651761d66470fedf39da8e99b47ea6b4
Reviewed-on: https://review.whamcloud.com/33638
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_object.c