[coreboot] r3647 - trunk/util/flashrom

svn at coreboot.org svn at coreboot.org
Fri Oct 10 22:43:17 CEST 2008


Author: stuge
Date: 2008-10-10 22:43:17 +0200 (Fri, 10 Oct 2008)
New Revision: 3647

Modified:
   trunk/util/flashrom/flashrom.c
Log:
flashrom: Check that a filename was specified also when using force read

Signed-off-by: Peter Stuge <peter at stuge.se>
Acked-by: Peter Stuge <peter at stuge.se>


Modified: trunk/util/flashrom/flashrom.c
===================================================================
--- trunk/util/flashrom/flashrom.c	2008-10-10 18:06:56 UTC (rev 3646)
+++ trunk/util/flashrom/flashrom.c	2008-10-10 20:43:17 UTC (rev 3647)
@@ -449,6 +449,10 @@
 				printf("Run flashrom -L to view the hardware supported in this flashrom version.\n");
 				exit(1);
 			}
+			if (!filename) {
+				printf("Error: No filename specified.\n");
+				exit(1);
+			}
 			size = flashes[0]->total_size * 1024;
 			buf = (uint8_t *) calloc(size, sizeof(char));
 





More information about the coreboot mailing list