projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7390cdf
)
load_multiboot(): get_image_size() returns int
author
Jes Sorensen
<Jes.Sorensen@redhat.com>
Tue, 31 Aug 2010 07:30:38 +0000
(09:30 +0200)
committer
Blue Swirl
<blauwirbel@gmail.com>
Sat, 4 Sep 2010 09:45:54 +0000
(09:45 +0000)
Do not store return of get_image_size() in a uint32_t as it makes it
impossible to detect error returns from get_image_size.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/multiboot.c
patch
|
blob
|
history
diff --git
a/hw/multiboot.c
b/hw/multiboot.c
index dc980e649881b2297bb13f2f6c8fb1ef1d3af54f..f9097a2f60c9b9c99eb167eaef6fb015824d1fa6 100644
(file)
--- a/
hw/multiboot.c
+++ b/
hw/multiboot.c
@@
-252,7
+252,7
@@
int load_multiboot(void *fw_cfg,
do {
char *next_space;
-
uint32_
t mb_mod_length;
+
in
t mb_mod_length;
uint32_t offs = mbs.mb_buf_size;
next_initrd = strchr(initrd_filename, ',');