aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel.a@redhat.com>2014-05-26 15:40:57 +0300
committerAndreas Färber <afaerber@suse.de>2014-05-28 17:35:59 +0200
commit13d7adf92a97c8252df6165ec84127798f3096d3 (patch)
treead40970925997e8035886ba2aaacfaefc98ca62e /vl.c
parent3ef9622182e598392855931e7a0437d3855cef5e (diff)
vl.c: Do not set 'type' property in obj_set_property()
Filter out also 'type' property when setting object's properties. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index e65d0b373d..8a4e58ce5c 100644
--- a/vl.c
+++ b/vl.c
@@ -2891,7 +2891,8 @@ static int object_set_property(const char *name, const char *value, void *opaque
StringInputVisitor *siv;
Error *local_err = NULL;
- if (strcmp(name, "qom-type") == 0 || strcmp(name, "id") == 0) {
+ if (strcmp(name, "qom-type") == 0 || strcmp(name, "id") == 0 ||
+ strcmp(name, "type") == 0) {
return 0;
}