Re: [PATCH 1/4] hw/cxl: Fix CFMW config memory leak

2023-09-13 Thread Michael Tokarev
04.09.2023 16:28, Jonathan Cameron via: From: Li Zhijian Allocate targets and targets[n] resources when all sanity checks are passed to avoid memory leaks. Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Li Zhijian Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Jonathan Cameron

Re: [PATCH 1/4] hw/cxl: Fix CFMW config memory leak

2023-09-12 Thread Fan Ni
On Mon, Sep 04, 2023 at 02:28:03PM +0100, Jonathan Cameron wrote: > From: Li Zhijian > > Allocate targets and targets[n] resources when all sanity checks are > passed to avoid memory leaks. > > Suggested-by: Philippe Mathieu-Daudé > Signed-off-by: Li Zhijian > Reviewed-by: Philippe

[PATCH 1/4] hw/cxl: Fix CFMW config memory leak

2023-09-04 Thread Jonathan Cameron via
From: Li Zhijian Allocate targets and targets[n] resources when all sanity checks are passed to avoid memory leaks. Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Li Zhijian Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Jonathan Cameron --- hw/cxl/cxl-host.c | 12 ++-- 1