writebufsize is zero initialized, set actual value during init. Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxxxxxxxx> --- drivers/mtd/nor/cfi_flash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c index e50f0e6..5bdccca 100644 --- a/drivers/mtd/nor/cfi_flash.c +++ b/drivers/mtd/nor/cfi_flash.c @@ -956,6 +956,7 @@ static void cfi_init_mtd(struct flash_info *info) mtd->erasesize = erasesize; mtd->writesize = 1; + mtd->writebufsize = info->buffer_size; mtd->subpage_sft = 0; mtd->eraseregions = info->eraseregions; mtd->numeraseregions = info->numeraseregions; -- 2.7.3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox