]> Pileus Git - ~andy/linux/commit
amd64_edac: Fix PCI function lookup
authorDaniel J Blueman <daniel@numascale-asia.com>
Fri, 30 Nov 2012 08:44:19 +0000 (16:44 +0800)
committerBorislav Petkov <bp@suse.de>
Thu, 10 Jan 2013 15:17:59 +0000 (16:17 +0100)
commite2c0bffea2574c088d86a9f1f661a84bc8fea2fd
treeaa660ed07334a579f6a84347c0bd14ef4a43ecdb
parent8b84c8df38d5796da2e8cd051666d203ddabcb62
amd64_edac: Fix PCI function lookup

Fix locating sibling memory controller PCI functions by using the
correct PCI domain and use a northbridge descriptor only if found. We
need to at least warn if it wasn't found so that it gets fixed and we
don't go off with wrong results.

Signed-off-by: Daniel J Blueman <daniel@numascale-asia.com>
Link: http://lkml.kernel.org/r/1354265060-22956-1-git-send-email-daniel@numascale-asia.com
[Boris: remove wrong comment, sanitize code and warn if NB desc lookup fails]
Signed-off-by: Borislav Petkov <bp@alien8.de>
drivers/edac/amd64_edac.c