linux/arch/x86/platform/uv
James Custer fa2a79ce6a x86: UV BAU: Avoid NULL pointer reference in ptc_seq_show
In init_per_cpu(), when get_cpu_topology() fails, init_per_cpu_tunables()
is not called afterwards. This means that bau_control->statp is NULL.
If a user then reads /proc/sgi_uv/ptc_statistics ptc_seq_show() references
a NULL pointer. Therefore, since uv_bau_init calls set_bau_off when
init_per_cpu() fails, we add code that detects when the bau is off in
ptc_seq_show() to avoid referencing a NULL pointer.

Signed-off-by: James Custer <jcuster@sgi.com>
Cc: Russ Anderson <rja@sgi.com>
Link: http://lkml.kernel.org/r/1414952199-185319-2-git-send-email-jcuster@sgi.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2014-11-03 13:49:24 +01:00
..
bios_uv.c x86/efi: Delete most of the efi_call* macros 2014-04-17 13:26:30 +01:00
Makefile x86/UV: Move NMI support 2013-09-24 09:02:02 +02:00
tlb_uv.c x86: UV BAU: Avoid NULL pointer reference in ptc_seq_show 2014-11-03 13:49:24 +01:00
uv_irq.c x86: uv: Use irq_alloc/free_hwirq() 2014-05-16 14:05:19 +02:00
uv_nmi.c uv: Replace __get_cpu_var 2014-08-26 13:45:50 -04:00
uv_sysfs.c driver-core: remove sysdev.h usage. 2011-12-21 16:26:03 -08:00
uv_time.c x86: Replace __get_cpu_var uses 2014-08-26 13:45:49 -04:00