• Matt Fleming's avatar
    x86/efi: Rip out phys_efi_get_time() · 3f4a7836
    Matt Fleming authored
    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: default avatarDan 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: default avatarMatt Fleming <matt.fleming@intel.com>
    3f4a7836
efi.c 33.1 KB