Whamcloud - gitweb
LU-9307 lov: NULL pointer deref in lov_delete_composite 58/26458/3
authorBobi Jam <bobijam.xu@intel.com>
Sun, 9 Apr 2017 09:12:19 +0000 (17:12 +0800)
committerJinshan Xiong <jinshan.xiong@intel.com>
Sat, 15 Apr 2017 20:08:14 +0000 (20:08 +0000)
commitd8701abb9b576ae295fd4cb861edcbbd36c103a3
treeb6fa7e0a159f84830849d3dad5b2fd67a9374f8e
parenta719cedfe4e449c088fd03e09f2b4064cd2ef688
LU-9307 lov: NULL pointer deref in lov_delete_composite

When lov_init_composite() cannot allocate memory and bails out,
lov_delete_composite() is then called, and it should check the
composite entry's existence before trying to delete each component.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I013c596a19a114b763f3eebbaafa1559fa09d8d9
Reviewed-on: https://review.whamcloud.com/26458
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/lov/lov_object.c