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 <[EMAIL PROTECTED]>
Acked-by: Peter Stuge <[EMAIL PROTECTED]>


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


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to