Skip to content

Commit

Permalink
trivial: Fix UEFI capsule ESP cleanup
Browse files Browse the repository at this point in the history
See #6956
  • Loading branch information
hughsie committed Mar 22, 2024
1 parent 0e0a55e commit 8c5b62a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/uefi-capsule/fu-uefi-capsule-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ static gboolean
fu_uefi_capsule_plugin_cleanup_esp(FuUefiCapsulePlugin *self, GError **error)
{
g_autofree gchar *esp_os_base = fu_uefi_get_esp_path_for_os();
g_autofree gchar *esp_path = fu_volume_get_mount_point(self->esp);
g_autofree gchar *esp_path = NULL;
g_autofree gchar *pattern = NULL;
g_autoptr(FuDeviceLocker) esp_locker = NULL;
g_autoptr(GPtrArray) files = NULL;
Expand All @@ -1176,6 +1176,7 @@ fu_uefi_capsule_plugin_cleanup_esp(FuUefiCapsulePlugin *self, GError **error)
esp_locker = fu_volume_locker(self->esp, error);
if (esp_locker == NULL)
return FALSE;
esp_path = fu_volume_get_mount_point(self->esp);
if (esp_path == NULL) {
g_set_error_literal(error,
FWUPD_ERROR,
Expand Down

0 comments on commit 8c5b62a

Please sign in to comment.