Re: [PATCH v5] cxl-cdat:Fix open file not closed in ct3_load_cdat

2023-04-22 Thread Hao Zeng
hi Jonathan: Thank you very much Best regards --- Hao On Fri, 2023-04-21 at 14:14 +0100, Jonathan Cameron wrote: > On Thu, 13 Apr 2023 20:23:58 +0800 > Hao Zeng wrote: > > > Open file descriptor not closed in error paths. Fix by replace > > open coded handling of read of whole file into a

Re: [PATCH v5] cxl-cdat:Fix open file not closed in ct3_load_cdat

2023-04-21 Thread Jonathan Cameron via
On Thu, 13 Apr 2023 20:23:58 +0800 Hao Zeng wrote: > Open file descriptor not closed in error paths. Fix by replace > open coded handling of read of whole file into a buffer with > g_file_get_contents() > > Fixes: aba578bdac ("hw/cxl: CDAT Data Object Exchange implementation") > Signed-off-by:

[PATCH v5] cxl-cdat:Fix open file not closed in ct3_load_cdat

2023-04-13 Thread Hao Zeng
Open file descriptor not closed in error paths. Fix by replace open coded handling of read of whole file into a buffer with g_file_get_contents() Fixes: aba578bdac ("hw/cxl: CDAT Data Object Exchange implementation") Signed-off-by: Zeng Hao Suggested-by: Philippe Mathieu-Daudé Suggested-by: