summaryrefslogtreecommitdiff
path: root/common/cmd_scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_scsi.c')
-rw-r--r--common/cmd_scsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c
index 61309f90a44..68e46b63897 100644
--- a/common/cmd_scsi.c
+++ b/common/cmd_scsi.c
@@ -281,6 +281,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
puts ("\n** Bad Header Checksum **\n");
return 1;
}
+ hdr->ih_hcrc = htonl(checksum); /* restore checksum for later use */
print_image_hdr (hdr);
cnt = (ntohl(hdr->ih_size) + sizeof(image_header_t));