Re: [Qemu-devel] [PATCH v1 1/1] qom/object: Don't poll cast cache for NULL objects

2013-05-21 Thread Anthony Liguori
peter.crosthwa...@xilinx.com writes: > From: Peter Crosthwaite > > object_dymamic_cast_assert used to be tolerant of NULL objects and not > assert. Its clear from the implementation that this is the expected > behavior. > > The preceding check of the cast cache dereferences obj however causing >

Re: [Qemu-devel] [PATCH v1 1/1] qom/object: Don't poll cast cache for NULL objects

2013-05-21 Thread Andreas Färber
Am 21.05.2013 08:05, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > object_dymamic_cast_assert used to be tolerant of NULL objects and not "dynamic" > assert. Its clear from the implementation that this is the expected "It's" > behavior. > > The preceding check of the ca

[Qemu-devel] [PATCH v1 1/1] qom/object: Don't poll cast cache for NULL objects

2013-05-20 Thread peter . crosthwaite
From: Peter Crosthwaite object_dymamic_cast_assert used to be tolerant of NULL objects and not assert. Its clear from the implementation that this is the expected behavior. The preceding check of the cast cache dereferences obj however causing a segfault. Fix by conditionalizing the cast cache l