summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-2.6.38/474-mtd_concat_sync_fix.patch
blob: 4e3426b7bdb4f9380b2bfbcdbf683cd6e6eb505e (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);
 	}
 }