/* Description: Returns 1 if PMBR is valid, 0 otherwise. Validity depends on two things: 1) MSDOS signature is in the last two bytes of the MBR 2) One partition of type 0xEE is found  */
static int is_pmbr_valid(legacy_mbr *mbr)
/* Description: Returns 1 if PMBR is valid, 0 otherwise. Validity depends on two things: 1) MSDOS signature is in the last two bytes of the MBR 2) One partition of type 0xEE is found  */
static int is_pmbr_valid(legacy_mbr *mbr)
{
	int i;
	if (!mbr || le16_to_cpu(mbr->signature) != MSDOS_MBR_SIGNATURE)
                return 0;
	for (i = 0; i < 4; i++)
		if (pmbr_part_valid(&mbr->partition_record[i]))
                        return 1;
	return 0;
}