[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 08/22] arm/acpi: Parse MADT to map logical cpu to MPIDR and get cpu_possible_map
On 2016/2/26 17:49, Jan Beulich wrote: >>>> On 26.02.16 at 07:22, <zhaoshenglong@xxxxxxxxxx> wrote: >> > --- a/xen/include/xen/acpi.h >> > +++ b/xen/include/xen/acpi.h >> > @@ -39,6 +39,10 @@ >> > #define ACPI_MADT_GET_POLARITY(inti) ACPI_MADT_GET_(POLARITY, inti) >> > #define ACPI_MADT_GET_TRIGGER(inti) ACPI_MADT_GET_(TRIGGER, inti) >> > >> > +#define BAD_MADT_ENTRY(entry, end) ( >> > \ >> > + (!(entry)) || (unsigned long)(entry) + sizeof(*(entry)) > >> > (end) || \ >> > + ((struct acpi_subtable_header *)(entry))->length < >> > sizeof(*(entry))) > Would it be too much to ask for you to eliminate the bogus cast > here, in favor of properly using (entry)->header.length? Afaics > this should be fine for all users of the macro. Oh, sorry, will update this. Thanks, -- Shannon _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |