1 2 3 4 5 6 7 8 9 10 11 12
--- a/drivers/mtd/mtdconcat.c +++ b/drivers/mtd/mtdconcat.c @@ -619,7 +619,8 @@ static void concat_sync(struct mtd_info for (i = 0; i < concat->num_subdev; i++) { struct mtd_info *subdev = concat->subdev[i]; - subdev->sync(subdev); + if (subdev->sync) + subdev->sync(subdev); } }