"qom-set" can be used to set object property by external users, so it's
necessary to enable deprecation check for this case.

Signed-off-by: Zhao Liu <[email protected]>
---
 qom/qom-hmp-cmds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qom/qom-hmp-cmds.c b/qom/qom-hmp-cmds.c
index a00a564b1e22..1bfef0837e30 100644
--- a/qom/qom-hmp-cmds.c
+++ b/qom/qom-hmp-cmds.c
@@ -58,7 +58,7 @@ void hmp_qom_set(Monitor *mon, const QDict *qdict)
             error_set(&err, ERROR_CLASS_DEVICE_NOT_FOUND,
                       "Device '%s' not found", path);
         } else {
-            object_property_parse(obj, property, value, &err);
+            object_property_parse_with_check(obj, property, value, &err);
         }
     } else {
         QObject *obj = qobject_from_json(value, &err);
-- 
2.34.1


Reply via email to