diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-02-23 16:56:53 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-03-12 17:56:55 -0400 |
commit | 0f9c30350bdf9d062609a15124f30f6c2b0a4b60 (patch) | |
tree | 3bb1fa48d3fde19806b550f05a697e4786a5c050 /hw/usb/combined-packet.c | |
parent | ccd1fd0c5d4f4cba7fa8642ab466a82db3e9f093 (diff) | |
download | qemu-0f9c30350bdf9d062609a15124f30f6c2b0a4b60.zip qemu-0f9c30350bdf9d062609a15124f30f6c2b0a4b60.tar.gz qemu-0f9c30350bdf9d062609a15124f30f6c2b0a4b60.tar.bz2 |
hw/intc: Check @errp to handle the error of IOAPICCommonClass.realize()
IOAPICCommonClass implements its own private realize(), and this private
realize() allows error.
Since IOAPICCommonClass.realize() returns void, to check the error,
dereference @errp with ERRP_GUARD().
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20240223085653.1255438-8-zhao1.liu@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/usb/combined-packet.c')
0 files changed, 0 insertions, 0 deletions