mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-03 06:09:51 +00:00
Fix an assert when unlocking the dummy ESRT device
This commit is contained in:
parent
3ef952fcea
commit
b0af181b01
@ -247,7 +247,10 @@ fu_provider_uefi_unlock (FuProvider *provider,
|
||||
g_debug ("unlocking UEFI device %s", fu_device_get_id (device));
|
||||
rc = fwup_enable_esrt();
|
||||
if (rc <= 0) {
|
||||
g_debug("Failed to unlock UEFI device");
|
||||
g_set_error_literal (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_NOT_SUPPORTED,
|
||||
"failed to unlock UEFI device");
|
||||
return FALSE;
|
||||
} else if (rc == 1)
|
||||
g_debug("UEFI device is already unlocked");
|
||||
|
Loading…
Reference in New Issue
Block a user