Skip to content

Commit

Permalink
trivial: Fix UEFI capsule ESP cleanup
Browse files Browse the repository at this point in the history
See #6956

(cherry picked from commit 796b06b)
  • Loading branch information
hughsie authored and superm1 committed Mar 22, 2024
1 parent 88f7dc3 commit e86d063
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 @@ -1218,7 +1218,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 @@ -1227,6 +1227,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,
G_IO_ERROR,
Expand Down

0 comments on commit e86d063

Please sign in to comment.