]> Git Repo - qemu.git/commit
hw/qdev: Abort rather than ignoring errors adding device properties
authorPeter Maydell <[email protected]>
Mon, 25 Mar 2013 13:15:14 +0000 (13:15 +0000)
committerAnthony Liguori <[email protected]>
Tue, 26 Mar 2013 14:27:02 +0000 (09:27 -0500)
commite769bdc26ded6d7681cddd9f67c5f87a4b5ba53c
tree37ad07aff485c8e7c3df43b381351a16276fa035
parent54852b03711f06c5f24af72de583346922176947
hw/qdev: Abort rather than ignoring errors adding device properties

Instead of ignoring any errors that occur when adding properties
to a new device in device_initfn(), check for them and abort if any
occur. The most likely cause is accidentally adding a duplicate
property, which is a programming error by the device author.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Anthony Liguori <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Message-id: 1364217314[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
hw/qdev.c
This page took 0.02265 seconds and 4 git commands to generate.