json-parser: Fix potential NULL pointer segfault
Report from smatch:json-parser.c:474 parse_object(62) error: potential null derefence 'dict'.json-parser.c:553 parse_array(75) error: potential null derefence 'list'.
Label 'out' in json-parser.c can be called with list == NULL...
error: add error_setg()
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
console: vga_hw_screen_dump_ptr: take Error argument
All devices that register a screen dump callback viagraphic_console_init() are updated.
The new argument is not used in this commit. Error handling willbe added to each device individually later.
This change is a preparation to convert the screendump command...
qapi: convert screendump
Next commits will update devices to propagate errors.
vga: ppm_save(): add error handling
omap_lcdc: rename ppm_save() to omap_ppm_save()
Avoids confusion with the global ppm_save() defined in hw/vga.c.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
omap_lcdc: omap_ppm_save(): add error handling
g364fb: g364fb_screen_dump(): add error handling
tcx: tcx24_screen_dump(): add error handling
tcx: tcx_screen_dump(): add error handling
View all revisions | View revisions
Also available in: Atom