x86/efi: Rip out phys_efi_get_time()
authorMatt Fleming <matt.fleming@intel.com>
Thu, 13 Mar 2014 19:41:08 +0000 (19:41 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Mon, 17 Mar 2014 21:54:28 +0000 (21:54 +0000)
commit3f4a7836e33134d4ac34fa7c99788f0c6a79fa1c
tree2ea2c9473a6aec168a5b8f500c8d436ba5beeaaf
parente10848a26a962e404ac00c897dfe54f14290806d
x86/efi: Rip out phys_efi_get_time()

Dan reported that phys_efi_get_time() is doing kmalloc(..., GFP_KERNEL)
under a spinlock which is very clearly a bug. Since phys_efi_get_time()
has no users let's just delete it instead of trying to fix it.

Note that since there are no users of phys_efi_get_time(), it is not
possible to actually trigger a GFP_KERNEL alloc under the spinlock.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Nathan Zimmer <nzimmer@sgi.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Jan Beulich <JBeulich@suse.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi.c