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
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
spapr_nvram.c spapr_nvram: Check return value from blk_getlength() 2017-06-06 09:18:32 +10:00
trace-events