Re: [PATCH] perf/x86/uncore: fix missing end markers for SNB/IVB/HSW IMC PMU

From: Andi Kleen
Date: Thu Mar 13 2014 - 13:18:30 EST


Stephane Eranian <eranian@xxxxxxxxxx> writes:

> This patch fixes a bug with the SNB/IVB/HSW uncore
> mmeory controller support.
>
> The PCI Ids tables for the memory controller were missing end markers.
> That could cause random crashes on boot during or after PCI device
> registration.

I wonder if there's a way to check this in checkpatch.pl ?

Or maybe a sparse check could be added, with a new type attribute
that says "needs to be 0 terminate"

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/