On Thu, Oct 22, 2026 at 06:13:32PM -0700, Alison Schofield wrote:
> When debugfs is not mounted or CONFIG_DEBUG_FS is disabled, 'cxl list -v'
> crashes while generating the protocol_injectable attribute for downstream
> ports.
> 
> The crash occurs because cxl_dport_get_einj_path() passes a NULL debugfs
> path to strlen().
> 
> Return NULL from cxl_dport_get_einj_path() when debugfs is unavailable,
> and omit protocol_injectable from the JSON output, consistent with other
> debugfs-dependent attributes. Update the documentation to match.
> 
> Thanks to Christopher Kim who reported and provided the fixup.
> 
> Originally-by: Christopher Kim
> Fixes: 5d596866f8c5 ("cxl/list: add injectable errors in output")
> Closes: https://github.com/pmem/ndctl/issues/300
> Signed-off-by: Alison Schofield <[email protected]>

Applied to pending for NDCTL v86
https://github.com/pmem/ndctl/commit/1b126bf930c5

Reply via email to