From 4d50af1aaa85cd485320e82bc8ae5e8c5db9343a Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 29 Jan 2013 17:38:39 +0400 Subject: [PATCH] system/flashtool.cpp: fix buffer size for nor Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d1cbff900f742ba04f45e4b9c658f1d7f5d565eb Author: [CST] Focus Date: 2013-01-29 (Tue, 29 Jan 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/flashtool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/flashtool.cpp b/src/system/flashtool.cpp index da1611b45..13f4a4580 100644 --- a/src/system/flashtool.cpp +++ b/src/system/flashtool.cpp @@ -285,6 +285,9 @@ bool CFlashTool::getInfo() ErrorMessage = "can't get mtd-info"; return false; } + if (meminfo.writesize < 1024) + meminfo.writesize = 1024; + isnand = (meminfo.type == MTD_NANDFLASH); printf("CFlashTool::getInfo: NAND: %s\n", isnand ? "yes" : "no"); return true;