mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
The MBR data is not necessarily aligned. This is a problem on ARM.
This commit is contained in:
parent
ebce2fe6d3
commit
181abccb96
1 changed files with 2 additions and 2 deletions
|
|
@ -661,8 +661,8 @@ ptable_open(void *dev, off_t sectors, uint16_t sectorsize,
|
|||
for (i = has_ext = 0; i < NDOSPART; i++) {
|
||||
if (dp[i].dp_typ == 0)
|
||||
continue;
|
||||
start = le32toh(dp[i].dp_start);
|
||||
end = le32toh(dp[i].dp_size);
|
||||
start = le32dec(&(dp[i].dp_start));
|
||||
end = le32dec(&(dp[i].dp_size));
|
||||
if (start == 0 || end == 0)
|
||||
continue;
|
||||
#if 0 /* Some BIOSes return an incorrect number of sectors */
|
||||
|
|
|
|||
Loading…
Reference in a new issue