1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-05 08:43:10 +02:00
openwrt-xburst/target/linux/generic/patches-2.6.39/474-mtd_concat_sync_fix.patch
florian e056550af0 [kernel] update to 2.6.39.1
patch from Peter Wagner

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27104 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-06-04 13:35:55 +00:00

13 lines
296 B
Diff

--- 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);
}
}