[PATCH 5.4 385/434] md: avoid invalid memory access for array sb->dev_roles