aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/vmlinux-gdb.py
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2016-06-16 17:13:49 +0000
committerIngo Molnar <[email protected]>2016-07-01 07:35:35 +0000
commit1ead852dd88779eda12cb09cc894a03d9abfe1ec (patch)
tree54ac3a80addab9db944052d1a31f539d7eb0924a /scripts/gdb/vmlinux-gdb.py
parentMAINTAINERS: Update the Calgary IOMMU entry (diff)
downloadkernel-1ead852dd88779eda12cb09cc894a03d9abfe1ec.tar.gz
kernel-1ead852dd88779eda12cb09cc894a03d9abfe1ec.zip
x86/amd_nb: Fix boot crash on non-AMD systems
Fix boot crash that triggers if this driver is built into a kernel and run on non-AMD systems. AMD northbridges users call amd_cache_northbridges() and it returns a negative value to signal that we weren't able to cache/detect any northbridges on the system. At least, it should do so as all its callers expect it to do so. But it does return a negative value only when kmalloc() fails. Fix it to return -ENODEV if there are no NBs cached as otherwise, amd_nb users like amd64_edac, for example, which relies on it to know whether it should load or not, gets loaded on systems like Intel Xeons where it shouldn't. Reported-and-tested-by: Tony Battersby <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions