Whamcloud - gitweb
LU-15308 lod: set ldo_mirrors to NULL on error
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 6 Apr 2022 16:51:47 +0000 (11:51 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 2 Jul 2022 01:54:34 +0000 (01:54 +0000)
commit4acea881a59e616751b65b78b92508e1a8b3abf3
tree3e45fd47c7a43d86cbba266d404363f2a45c903a
parent499d24a58b4a8693639f01a0c1b5fb76d0f55a6d
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.

Lustre-change: https://review.whamcloud.com/47008
Lustre-commit: 26f6b0e952b24de2a900f6f1eeae79fea6af4787

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