summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-10-14 15:32:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-14 15:32:10 +0200
commitb93cbf9ccd08f1049249688048cf633faed5b69f (patch)
tree90aec810aa0fbc6afbf158873979584990af35ac /common
parenteaf020f1bb5204aecc5c820f8dd020369f32b383 (diff)
parentee7d0f92357c5235b71205f8c8a5d1cdc8efd4e0 (diff)
downloadbarebox-b93cbf9ccd08f1049249688048cf633faed5b69f.tar.gz
barebox-b93cbf9ccd08f1049249688048cf633faed5b69f.tar.xz
Merge branch 'imx_gpt_file_header_fix' of https://github.com/KLSMartin/barebox into for-next/misc
Diffstat (limited to 'common')
-rw-r--r--common/partitions/efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 3c1077fd0c..f20fd0d9b9 100644
--- a/common/partitions/efi.c
+++ b/common/partitions/efi.c
@@ -369,7 +369,7 @@ static int find_valid_gpt(void *buf, struct block_device *blk, gpt_header **gpt,
lastlba = last_lba(blk);
if (force_gpt) {
/* This will be added to the EFI Spec. per Intel after v1.02. */
- if (file_detect_type(buf, SECTOR_SIZE * 2) != filetype_gpt)
+ if (file_detect_partition_table(buf, SECTOR_SIZE * 2) != filetype_gpt)
goto fail;
}