Whamcloud - gitweb
LU-15308 lod: set ldo_mirrors to NULL on error 08/47008/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 6 Apr 2022 16:51:47 +0000 (11:51 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Jun 2022 05:54:57 +0000 (05:54 +0000)
commit27480516bb20fd62660ce38e2c381a76c5000833
tree80fd8eee1204dbc0adc07b0ea43b2c817b8ae3c7
parent174308a077f6c19b82e7b78753c544519330f25d
LU-15308 lod: set ldo_mirrors to NULL on error

In lod_alloc_comp_entries() if OBD_ALLOC_LARGE fails and we free
ldo_mirrors then we set it to NULL to avoid a double free later.

Test-Parameters: trivial
Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I27552d1eaecc06720190db9cfe89ded71b9fef53
Reviewed-on: https://review.whamcloud.com/47008
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/lod/lod_lov.c