[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 42/59] object: check strong flag with &
From: |
Paolo Bonzini |
Subject: |
[PULL 42/59] object: check strong flag with & |
Date: |
Thu, 23 Jan 2020 14:48:45 +0100 |
From: Marc-André Lureau <address@hidden>
The following patch is going to introduce more flags.
Signed-off-by: Marc-André Lureau <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
qom/object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qom/object.c b/qom/object.c
index 30c4f82..fb80013 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1822,7 +1822,7 @@ static void object_set_link_property(Object *obj, Visitor
*v,
}
*child = new_target;
- if (prop->flags == OBJ_PROP_LINK_STRONG) {
+ if (prop->flags & OBJ_PROP_LINK_STRONG) {
object_ref(new_target);
object_unref(old_target);
}
--
1.8.3.1
- [PULL 32/59] qdev: remove duplicated qdev_property_add_static() doc, (continued)
- [PULL 32/59] qdev: remove duplicated qdev_property_add_static() doc, Paolo Bonzini, 2020/01/23
- [PULL 33/59] qdev: remove extraneous error, Paolo Bonzini, 2020/01/23
- [PULL 34/59] qdev: move helper function to monitor/misc, Paolo Bonzini, 2020/01/23
- [PULL 35/59] object: avoid extra class property key duplication, Paolo Bonzini, 2020/01/23
- [PULL 36/59] object: add class property initializer, Paolo Bonzini, 2020/01/23
- [PULL 37/59] object: add object_property_get_defaut(), Paolo Bonzini, 2020/01/23
- [PULL 38/59] object: make object_class_property_add* return property, Paolo Bonzini, 2020/01/23
- [PULL 39/59] qstring: add qstring_free(), Paolo Bonzini, 2020/01/23
- [PULL 40/59] object: add object_property_set_defaut_{bool, str, int, uint}(), Paolo Bonzini, 2020/01/23
- [PULL 41/59] object: do not free class properties, Paolo Bonzini, 2020/01/23
- [PULL 42/59] object: check strong flag with &,
Paolo Bonzini <=
- [PULL 43/59] object: rename link "child" to "target", Paolo Bonzini, 2020/01/23
- [PULL 47/59] object: release all props, Paolo Bonzini, 2020/01/23
- [PULL 44/59] object: add direct link flag, Paolo Bonzini, 2020/01/23
- [PULL 45/59] object: express const link with link property, Paolo Bonzini, 2020/01/23
- [PULL 48/59] object: return self in object_ref(), Paolo Bonzini, 2020/01/23
- [PULL 46/59] object: add object_class_property_add_link(), Paolo Bonzini, 2020/01/23
- [PULL 50/59] qdev: move instance properties to class properties, Paolo Bonzini, 2020/01/23
- [PULL 49/59] qdev: set properties with device_class_set_props(), Paolo Bonzini, 2020/01/23