Allow components smaller than declared size.
[coreboot.git] / util / ifdtool / ifdtool.c
index eb91b2c4329c50c489424c6af7812ff8ade6342b..8c1077c21a2efb22ba4463302f2adacdadf486f9 100644 (file)
@@ -334,7 +334,7 @@ void inject_region(char *filename, char *image, int size, int region_type,
        printf("File %s is %d bytes\n", region_fname, region_size);
 
        if ( (region_size > region.size) || ((region_type != 1) &&
-               (region_size != region.size))) {
+               (region_size > region.size))) {
                fprintf(stderr, "Region %s is %d(0x%x) bytes. File is %d(0x%x)"
                                " bytes. Not injecting.\n",
                                region_name(region_type), region.size,