On 31/5/23 08:07, Li Zhijian wrote:
Allocate targets and targets[n] resources when all sanity checks are
passed to avoid memory leaks.

Suggested-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Signed-off-by: Li Zhijian <lizhij...@cn.fujitsu.com>
---
V3: allocte further resource when we can't fail # Philippe

Thanks for the v3!

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

V2: Delete unnecesarry check
---
  hw/cxl/cxl-host.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)


Reply via email to