• Tian Baofeng's avatar
    efibc: Replace variable set function in notifier call · 975a6166
    Tian Baofeng authored
    Replace the variable set function from "efivar_entry_set" to
    "efivar_entry_set_safe" in efibc panic notifier.
    In safe function parameter "block" will set to false
    and will call "efivar_entry_set_nonblocking"to set efi variables.
    efivar_entry_set_nonblocking is guaranteed to
    not block and is suitable for calling from crash/panic handlers.
    In UEFI android platform, when warm reset happens,
    with this change, efibc will not block the reboot process.
    Otherwise, set variable will call queue work and send to other offlined
    cpus then cause another panic, finally will cause reboot failure.
    Signed-off-by: default avatarTian Baofeng <baofeng.tian@intel.com>
    Signed-off-by: default avatarLuo XinanX <xinanx.luo@intel.com>
    Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    975a6166
efibc.c 2.52 KB