(Online Capacity Expansion for IMSM) When disk expansion starts, device structure cannot be received from super due to configuration changes. To avoid this proper pointer check is introduced. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- super-intel.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/super-intel.c b/super-intel.c index ab26c98..b4a1f14 100644 --- a/super-intel.c +++ b/super-intel.c @@ -1438,10 +1438,15 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info) { struct intel_super *super = st->sb; struct imsm_dev *dev = get_imsm_dev(super, super->current_vol); - struct imsm_map *map = get_imsm_map(dev, 0); + struct imsm_map *map; struct dl *dl; char *devname; + if (dev == NULL) + return; + + map = get_imsm_map(dev, 0); + for (dl = super->disks; dl; dl = dl->next) if (dl->raiddisk == info->disk.raid_disk) break; ��.n��������+%������w��{.n�����{����w��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f