summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/part-discovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/efi/part-discovery.c')
-rw-r--r--src/boot/efi/part-discovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/part-discovery.c b/src/boot/efi/part-discovery.c
index f5b1573..e66e2da 100644
--- a/src/boot/efi/part-discovery.c
+++ b/src/boot/efi/part-discovery.c
@@ -232,7 +232,7 @@ static EFI_STATUS find_device(const EFI_GUID *type, EFI_HANDLE *device, EFI_DEVI
}
/* Patch in the data we found */
- *ret_device_path = device_path_replace_node(partition_path, part_node, (EFI_DEVICE_PATH *) &hd);
+ *ret_device_path = device_path_replace_node(partition_path, part_node, &hd.Header);
return EFI_SUCCESS;
}