summaryrefslogtreecommitdiff
path: root/fs/partitions/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/partitions/efi.c')
-rw-r--r--fs/partitions/efi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/partitions/efi.c b/fs/partitions/efi.c
index dbb44d4bb8a7..486b4444e6a4 100644
--- a/fs/partitions/efi.c
+++ b/fs/partitions/efi.c
@@ -621,7 +621,11 @@ int efi_partition(struct parsed_partitions *state)
if (!is_pte_valid(&ptes[i], last_lba(state->bdev)))
continue;
- put_partition(state, i+1, start * ssz, size * ssz);
+ put_named_partition(state, i+1, start * ssz, size * ssz,
+ (const char *) ptes[i].partition_name,
+ strnlen((const char *)
+ ptes[i].partition_name,
+ sizeof(ptes[i].partition_name)));
/* If this is a RAID volume, tell md */
if (!efi_guidcmp(ptes[i].partition_type_guid,