]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Check dev->realized at set_size()
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 11 Dec 2020 22:05:01 +0000 (17:05 -0500)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 Dec 2020 15:02:07 +0000 (10:02 -0500)
commit85f6f43283d669413045bbba93946f9e08e1c56d
treeb60486f9271ae3b36557f65bfb734cfb2d883758
parentd3fd6e7380b6212a3cd0b9f1304c84d8caa8dcf7
qdev: Check dev->realized at set_size()

This setter is one of the very few property setters that don't
check dev->realized, and there's no reason to make size
properties different from the rest.  Add the missing check.

Fixes: e8cd45c78f53 ("qdev: Add SIZE type to qdev properties")
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201211220529.2290218-5-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/qdev-properties.c