When rebuild/reshape is in progress, executing mdadm for read array details causes core dump. This is due to not initialized devices list pointer in getinfo_super() call. Initializing it to NULL value allows code to detect such situation. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Detail.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Detail.c b/Detail.c index 0fb90e8..a2d72f6 100644 --- a/Detail.c +++ b/Detail.c @@ -140,6 +140,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) close(fd2); if (err) continue; + info.devs = NULL; st->ss->getinfo_super(st, &info); if (array.raid_disks != 0 && /* container */ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html