diff options
author | Igor Mammedov | 2017-07-14 04:14:50 +0200 |
---|---|---|
committer | Paolo Bonzini | 2017-07-14 12:04:42 +0200 |
commit | 8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a (patch) | |
tree | e2829b8ca3d04cdee2f37cc1a01419786ac494c9 /hw/virtio | |
parent | translate-all: remove redundant !tcg_enabled check in dump_exec_info (diff) | |
download | qemu-8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a.tar.gz qemu-8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a.tar.xz qemu-8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a.zip |
qom: enforce readonly nature of link's check callback
link's check callback is supposed to verify/permit setting it,
however currently nothing restricts it from misusing it
and modifying target object from within.
Make sure that readonly semantics are checked by compiler
to prevent callback's misuse.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <20170714021509.23681-2-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio-crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c index 0353eb6d5d..2590893016 100644 --- a/hw/virtio/virtio-crypto.c +++ b/hw/virtio/virtio-crypto.c @@ -889,7 +889,7 @@ static void virtio_crypto_class_init(ObjectClass *klass, void *data) } static void -virtio_crypto_check_cryptodev_is_used(Object *obj, const char *name, +virtio_crypto_check_cryptodev_is_used(const Object *obj, const char *name, Object *val, Error **errp) { if (cryptodev_backend_is_used(CRYPTODEV_BACKEND(val))) { |