On 3/2/25 17:19, Jonathan Cameron via wrote:
From: Li Zhijian <lizhij...@fujitsu.com>

Simply pass the errp to its callee which will set errp if needed, to
enhance error reporting for CXL Type 3 device initialization by setting
the errp when realization functions fail.

Previously, failing to set `errp` could result in errors being overlooked,
causing the system to mistakenly treat failure scenarios as successful and
potentially leading to redundant cleanup operations in ct3_exit().

Signed-off-by: Li Zhijian <lizhij...@fujitsu.com>
Signed-off-by: Jonathan Cameron <jonathan.came...@huawei.com>
---
  hw/mem/cxl_type3.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to