mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
qom: allow object_new_with_prop* to trigger module loading
The object_new_with_prop* methods will shortly be replacing the user_creatable_add_type method. In order to do that, the object_new_with_prop* methods must allow module loading to be triggered for any types. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -774,7 +774,7 @@ object_new_with_props_helper(const char *typename,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
klass = object_class_by_name(typename);
|
||||
klass = module_object_class_by_name(typename);
|
||||
if (!klass) {
|
||||
error_setg(errp, "invalid object type: %s", typename);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user