OSDN Git Service

hw/mem/cxl_type3: Improve error handling in realize()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 6 Feb 2023 17:28:07 +0000 (17:28 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Mar 2023 00:13:52 +0000 (19:13 -0500)
commitde8a7394f02e3fba3002242f04816cff33537dd8
tree7cb10c1547cb52592d527427a25426705a30d7c3
parent3456fedb77215dc42572ab7ec1d9ca0e324260ea
hw/mem/cxl_type3: Improve error handling in realize()

msix_init_exclusive_bar() can fail, so if it does cleanup the address space.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Gregory Price <gregory.price@memverge.com>
Tested-by: Gregory Price <gregory.price@memverge.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230206172816.8201-2-Jonathan.Cameron@huawei.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/cxl_type3.c