qemu-e2k/hw/nvram
Peter Maydell 0524951788 spapr_nvram: Check return value from blk_getlength()
The blk_getlength() function can return an error value if the
image size cannot be determined. Check for this rather than
ploughing on and trying to g_malloc0() a negative number.
(Spotted by Coverity, CID 1288484.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-06-06 09:18:32 +10:00
..
chrp_nvram.c nvram: Move the remaining CHRP NVRAM related code to chrp_nvram.[ch] 2016-10-28 09:36:58 +11:00
ds1225y.c
eeprom93xx.c migration: extend VMStateInfo 2017-01-24 17:54:47 +00:00
fw_cfg.c migration: extend VMStateInfo 2017-01-24 17:54:47 +00:00
mac_nvram.c migration: consolidate VMStateField.start 2017-02-13 17:27:13 +00:00
Makefile.objs nvram: Introduce helper functions for CHRP "system" and "free space" partitions 2016-10-28 09:36:58 +11:00
spapr_nvram.c spapr_nvram: Check return value from blk_getlength() 2017-06-06 09:18:32 +10:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00