diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 005579ab6cd4..ba2fe31face7 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -954,8 +954,10 @@ msm_get_images(struct device *dev, *buf = '\0'; for (image = 0; image < SMEM_IMAGE_VERSION_BLOCKS_COUNT; image++) { - if (*image_address == '\0') + if (*image_address == '\0') { + image_address += SMEM_IMAGE_VERSION_SINGLE_BLOCK_SIZE; continue; + } pos += snprintf(buf + pos, PAGE_SIZE - pos, "%d:\n", image);