Revision f8ce0403 block/vmdk.c

b/block/vmdk.c
585 585
        return -ENOTSUP;
586 586
    }
587 587

  
588
    if (le32_to_cpu(header.num_gtes_per_gte) > 512) {
589
        error_report("L2 table size too big");
590
        return -EINVAL;
591
    }
592

  
588 593
    l1_entry_sectors = le32_to_cpu(header.num_gtes_per_gte)
589 594
                        * le64_to_cpu(header.granularity);
590 595
    if (l1_entry_sectors == 0) {

Also available in: Unified diff