diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-12-29 13:26:01 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-12-29 13:26:01 -0500 |
commit | ecbcf77b9e89d983207f8ed5f57ac727577a7575 (patch) | |
tree | a206f5a660da1a0645134b4aa380cd63a4e4bb47 | |
parent | 551caa21eb8fa4f7cd2971e48999b60f3619b519 (diff) | |
download | seabios-ecbcf77b9e89d983207f8ed5f57ac727577a7575.tar.gz |
Don't access drive_g->desc from boot_cdrom().
The drive description is allocated with malloc_tmp() and is thus only
available during the POST phase - boot_cdrom() is called during the
boot phase.
-rw-r--r-- | src/boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -431,7 +431,7 @@ boot_cdrom(struct ipl_entry_s *ie) struct drive_s *drive_g = (void*)ie->vector; int status = cdrom_boot(drive_g); if (status) { - printf("Boot failed: Could not read from CDROM %s (code %04x)\n", drive_g->desc, status); + printf("Boot failed: Could not read from CDROM (code %04x)\n", status); return; } |