]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/platform/UV: Fix bug with iounmap() of the UV4 EFI System Table causing a crash
authorMike Travis <travis@sgi.com>
Mon, 1 Aug 2016 18:40:51 +0000 (13:40 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 01:24:07 +0000 (17:24 -0800)
commit202a0ed178964cc00e551175eef0753ed9acb7cc
treecc0e18a9ba66c112c939b64f45d8ce8784e69c5d
parentac4002848077c3bc4a7ce22be029926b67177a3f
x86/platform/UV: Fix bug with iounmap() of the UV4 EFI System Table causing a crash

Orabug: 25477822

Save the uv_systab::size field before doing the iounmap()
of the struct pointer, to avoid a NULL dereference crash.

Tested-by: Frank Ramsay <framsay@sgi.com>
Tested-by: John Estabrook <estabrook@sgi.com>
Signed-off-by: Mike Travis <travis@sgi.com>
Reviewed-by: Dimitri Sivanich <sivanich@sgi.com>
Reviewed-by: Nathan Zimmer <nzimmer@sgi.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: Andrew Banman <abanman@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russ Anderson <rja@sgi.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20160801184050.250424783@asylum.americas.sgi.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit e363d24c2b997c421476c6aa00547edadf678efe)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/platform/uv/bios_uv.c