Skip to content

Commit

Permalink
boot_protocol/ultra: don't forget to fill out the disk_index field
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Tatianin <[email protected]>
  • Loading branch information
d-tatianin committed Sep 27, 2024
1 parent 7cdbffe commit 9e11c6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions loader/boot_protocol/ultra.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ write_kernel_info_attribute(struct ultra_kernel_info_attribute *attr,
attr->size = ki->bin_info.physical_ceiling - ki->bin_info.physical_base;
attr->partition_type = partition_type;
attr->partition_index = ki->bin_opts.path.partition_index;
attr->disk_index = ki->bin_opts.path.disk_index;

BUILD_BUG_ON(sizeof(attr->disk_guid) !=
sizeof(ki->bin_opts.path.disk_guid));
Expand Down

0 comments on commit 9e11c6e

Please sign in to comment.