Re: [PATCH 01/12] cxl/cdat: Handle cdat table build errors

2024-01-24 Thread fan
On Wed, Jan 24, 2024 at 12:40:49PM +, Jonathan Cameron wrote: > From: Ira Weiny > > The callback for building CDAT tables may return negative error codes. > This was previously unhandled and will result in potentially huge > allocations later on in ct3_build_cdat() > > Detect the negative er

[PATCH 01/12] cxl/cdat: Handle cdat table build errors

2024-01-24 Thread Jonathan Cameron via
From: Ira Weiny The callback for building CDAT tables may return negative error codes. This was previously unhandled and will result in potentially huge allocations later on in ct3_build_cdat() Detect the negative error code and defer cdat building. Fixes: f5ee7413d592 ("hw/mem/cxl-type3: Add C