This series is inspired of Peter fix: "hw/arm/xlnx-zynqmp.c: fix some error-handling code" https://www.mail-archive.com/qemu-devel@nongnu.org/msg691636.html
Add a cocci script to fix the other places. Based-on: <20200324134947.15384-1-peter.mayd...@linaro.org> Philippe Mathieu-Daud=C3=A9 (12): scripts/coccinelle: Add script to catch missing error_propagate() calls hw/arm/bcm2835_peripherals: Add missing error-propagation code hw/arm/fsl-imx: Add missing error-propagation code hw/arm/stm32fx05_soc: Add missing error-propagation code hw/i386/x86: Add missing error-propagation code hw/dma/xilinx_axidma: Add missing error-propagation code hw/mips/cps: Add missing error-propagation code hw/mips/boston: Add missing error-propagation code hw/mips/mips_malta: Add missing error-propagation code hw/misc/macio/macio: Add missing error-propagation code hw/net/xilinx_axienet: Add missing error-propagation code hw/riscv/sifive_u: Add missing error-propagation code ...ect_property_missing_error_propagate.cocci | 58 +++++++++++++++++++ hw/arm/bcm2835_peripherals.c | 8 +++ hw/arm/fsl-imx25.c | 8 +++ hw/arm/fsl-imx6.c | 8 +++ hw/arm/stm32f205_soc.c | 4 ++ hw/arm/stm32f405_soc.c | 4 ++ hw/dma/xilinx_axidma.c | 3 + hw/i386/x86.c | 4 ++ hw/mips/boston.c | 17 ++---- hw/mips/cps.c | 52 +++++++++++++++++ hw/mips/mips_malta.c | 19 ++++-- hw/misc/macio/macio.c | 4 ++ hw/net/xilinx_axienet.c | 3 + hw/riscv/sifive_u.c | 8 +++ 14 files changed, 184 insertions(+), 16 deletions(-) create mode 100644 scripts/coccinelle/object_property_missing_error_propagat= e.cocci --=20 2.21.1