aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-2.6.37/475-mtd_concat_sync_fix.patch
blob: ff3759e220856c3c6f8c1cc50330a343501086fd (plain)
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);
 	}
 }