Pārlūkot izejas kodu

[util] Fix up checksum in UNDI ROM header, if present

The UNDI ROM header does contain a checksum byte.  Apparently no-one
cares about this, since iPXE has left it as zero for years without
anyone noticing.

Since Option::ROM now understands the UNDI ROM header, we may as well
fix up the checksum byte for the sake of completeness.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 gadus atpakaļ
vecāks
revīzija
c7eea31ed8
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      src/util/fixrom.pl

+ 1
- 0
src/util/fixrom.pl Parādīt failu

32
   my $image = $rom;
32
   my $image = $rom;
33
   while ( $image ) {
33
   while ( $image ) {
34
     $image->pnp_header->fix_checksum() if $image->pnp_header;
34
     $image->pnp_header->fix_checksum() if $image->pnp_header;
35
+    $image->undi_header->fix_checksum() if $image->undi_header;
35
     $image->ipxe_header->fix_checksum() if $image->ipxe_header;
36
     $image->ipxe_header->fix_checksum() if $image->ipxe_header;
36
     $image->fix_checksum();
37
     $image->fix_checksum();
37
     $image = $image->next_image();
38
     $image = $image->next_image();

Notiek ielāde…
Atcelt
Saglabāt