i7core_edac: properly terminate pci_dev_table
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Oct 2010 13:12:28 +0000 (11:12 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Oct 2010 13:31:50 +0000 (11:31 -0200)
At pci_xeon_fixup(), it waits for a null-terminated table, while at
i7core_get_all_devices, it just do a for 0..ARRAY_SIZE. As other tables
are zero-terminated, change it to be terminate with 0 as well, and fixes
a bug where it may be running out of the table elements.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c

Simple merge