qom: Add error handler for object alias property
commit8ae9a9ef4e610a58d0748f5aa7dd144b08e09039
authorGonglei <arei.gonglei@huawei.com>
Sat, 27 Sep 2014 05:13:56 +0000 (27 13:13 +0800)
committerAndreas Färber <afaerber@suse.de>
Wed, 15 Oct 2014 03:03:04 +0000 (15 05:03 +0200)
treeb50d5fe4871f5403bafef851ac552da1f2cea608
parent3a53009fa044a554dbdeacf30a6b8ea3eb02fe63
qom: Add error handler for object alias property

object_property_add_alias() is called at some
places at present. And its parameter errp may not NULL,
such as
 object_property_add_alias(obj, "iothread", OBJECT(&dev->vdev),"iothread",
                              &error_abort);
This patch add error handler for security.

Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
qom/object.c