On Thu, Aug 06, 2026 at 03:31:11PM -0700, Alison Schofield wrote:
> From: Tao Xu <[email protected]>
> 
> Kernel commit cb9cfff82f6a ("cxl/acpi: Simplify cxl_nvdimm_bridge
> probing") removed bind attrributes for cxl_pmem_region and
> cxl_nvdimm* objects.
> 
> __util_bind() currently attempts to write to the bind attribute of
> every entry under /sys/bus/cxl/drivers/. On kernels where some driver
> directories no longer provide that attribute, these attempts fail with
> ENOENT and produce misleading bind errors.
> 
> Check that the bind attribute exists before attempting the write.
> 
> [ as: commit log edited ]
> 
> Reported-by: Tao Xu <[email protected]>
> Closes: https://github.com/pmem/ndctl/issues/298
> Signed-off-by: Tao Xu <[email protected]>
> Reviewed-by: Alison Schofield <[email protected]>
> Signed-off-by: Alison Schofield <[email protected]>


Applied to pending for NDCTL v86
https://github.com/pmem/ndctl/commit/3c8c3538a450


Reply via email to