Files
qemu/hw
Zesen Liu 00829ae384 qdev: fix error handling in set_uint64_checkmask
When specifying lbr_fmt=VALUE in cpu options with an invalid VALUE, error_setg() gets triggered twice, causing an assertion failure in error_setv() which requires *errp to be NULL, preventing meaningful error messages from being displayed.

Fix this by checking visit_type_uint64()'s return value and returning early on failure, consistent with other property setters like set_string().

Fixes: 18c22d7112 (qdev-properties: Add a new macro with bitmask check for uint64_t property)
Cc: qemu-stable@nongnu.org
Signed-off-by: Zesen Liu <ftyghome@gmail.com>
Message-ID: <20251217-qdev-fix-v1-1-bd33ea463220@gmail.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Add Fixes: and Cc:]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2025-12-17 09:23:38 +01:00
..
2025-12-09 20:42:59 +01:00
2025-12-05 15:37:18 +00:00
2025-11-14 13:18:04 +00:00
2025-11-14 13:18:04 +00:00
2025-11-25 09:21:41 +01:00
2025-11-09 16:54:44 +05:30
2025-10-30 14:48:26 +01:00
2025-10-30 14:48:26 +01:00
2025-09-02 17:57:05 +02:00