projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e1158
)
hw/core: fix missing return value in load_image_targphys_as()
author
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Fri, 23 Jun 2017 16:45:56 +0000
(13:45 -0300)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Tue, 11 Jul 2017 08:18:37 +0000
(11:18 +0300)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/core/loader.c
patch
|
blob
|
history
diff --git
a/hw/core/loader.c
b/hw/core/loader.c
index 3409cc6d1da59c4c0f86a19418d7a73ab07f96d4..c17ace0a2eeb8bcf897ed3bcf318b28769ce85ce 100644
(file)
--- a/
hw/core/loader.c
+++ b/
hw/core/loader.c
@@
-150,7
+150,9
@@
int load_image_targphys_as(const char *filename,
return -1;
}
if (size > 0) {
- rom_add_file_fixed_as(filename, addr, -1, as);
+ if (rom_add_file_fixed_as(filename, addr, -1, as) < 0) {
+ return -1;
+ }
}
return size;
}