Warn if value of qdev_init() isn't checked
commitdde8bbb44de41ea68f9bede0a6a778ce046b2bcf
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Oct 2009 23:16:00 +0000 (7 01:16 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 Oct 2009 13:54:55 +0000 (7 08:54 -0500)
tree19331faf157f1c594fdba7ef9393b65142994bc7
parent3f66aa9c07d6392757f9d7b83849c7f791981725
Warn if value of qdev_init() isn't checked

After qdev_init() fails, the device is gone.  Failure to check runs a
high risk of use-after-free.

Patchworks-ID: 35166
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.h