diff options
Diffstat (limited to 'hw/qdev-addr.c')
-rw-r--r-- | hw/qdev-addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev-addr.c b/hw/qdev-addr.c index 3bfe101d79..b4388f6a66 100644 --- a/hw/qdev-addr.c +++ b/hw/qdev-addr.c @@ -40,7 +40,7 @@ static void set_taddr(Object *obj, Visitor *v, void *opaque, Error *local_err = NULL; int64_t value; - if (dev->state != DEV_STATE_CREATED) { + if (dev->realized) { error_set(errp, QERR_PERMISSION_DENIED); return; } |