]> git.ipfire.org Git - thirdparty/qemu.git/commit
qom: Fix class cast of NULL classes
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 18 Jun 2013 09:18:59 +0000 (19:18 +1000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 00:05:26 +0000 (19:05 -0500)
commit9f8daa796bf402e6016f87e9bd32a78849bde4a7
treeb1e567c946b9b6a5cf34fa28612d78fbf045d298
parented448b82bdbc0545c422b4a8acd2c29259755ee3
qom: Fix class cast of NULL classes

Its clear from the implementation that class casting is supposed to work
with a NULL class argument. Guard all dereferences of the class argument
against NULL accordingly.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 94cd5ba46b74eea289a7e582635820c1c54e66fa.1371546907.git.peter.crosthwaite@xilinx.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 9d6a3d58e4d1431ab3809ff621cfd1f9ec75eef5)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qom/object.c