Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SPARC U-Boot Custodian Tree
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
U-Boot
Custodians
SPARC U-Boot Custodian Tree
Commits
b9649854
Commit
b9649854
authored
Feb 08, 2005
by
wdenk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix yet another recently introduced bug.
parent
e799d375
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
common/cmd_ide.c
common/cmd_ide.c
+2
-1
No files found.
common/cmd_ide.c
View file @
b9649854
...
...
@@ -450,11 +450,12 @@ int do_diskboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
checksum
=
ntohl
(
hdr
->
ih_hcrc
);
hdr
->
ih_hcrc
=
0
;
if
(
crc32
(
0
,
(
char
*
)
&
hdr
,
sizeof
(
image_header_t
))
!=
checksum
)
{
if
(
crc32
(
0
,
(
char
*
)
hdr
,
sizeof
(
image_header_t
))
!=
checksum
)
{
puts
(
"
\n
** Bad Header Checksum **
\n
"
);
SHOW_BOOT_PROGRESS
(
-
2
);
return
1
;
}
hdr
->
ih_hcrc
=
htonl
(
checksum
);
/* restore checksum for later use */
print_image_hdr
(
hdr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment