mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 23:59:22 +00:00
fix potential bugs in some LBA code
This commit is contained in:
1 parent
0f4f88a9d9
commit
7e9a0794d0
7 files changed
+46
-9
No files matched your search
+5
-1
@@ -675,11 +675,15 @@ returnit:
|
||||
else
|
||||
{
|
||||
char *msg;
|
||||
|
||||
|
||||
#ifdef GRUB_UTIL
|
||||
msg = device_map[current_drive];
|
||||
#else
|
||||
if (geom.flags & BIOSDISK_FLAG_LBA_EXTENSION)
|
||||
msg = "LBA";
|
||||
else
|
||||
msg = "CHS";
|
||||
#endif
|
||||
|
||||
grub_printf ("drive 0x%x: C/H/S = %d/%d/%d, "
|
||||
"The number of sectors = %d, %s\n",
|
||||
|
||||
Reference in new issue
Block a user