(Online Capacity Expansion for IMSM) When disk expansion is prepared, situation is very similar to rebuild conditions. Imsm tries to update recovery start, this causes NULL pointer reference. To avoid this proper pointer check is introduced. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- super-intel.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index 115a5f0..6683ef8 100644 --- a/super-intel.c +++ b/super-intel.c @@ -4342,6 +4342,9 @@ static void update_recovery_start(struct imsm_dev *dev, struct mdinfo *array) rebuild = d; } + if (rebuild == NULL) + return; + units = __le32_to_cpu(dev->vol.curr_migr_unit); rebuild->recovery_start = units * blocks_per_migr_unit(dev); } ��.n��������+%������w��{.n�����{����w��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f