diff options
author | Alison Schofield <[email protected]> | 2024-07-06 18:53:44 -0700 |
---|---|---|
committer | Dave Jiang <[email protected]> | 2024-07-10 17:12:42 -0700 |
commit | 3a8617c7df6eb351227aad9b0df647f34a7ef423 (patch) | |
tree | 3e357df8e6fb8486b6e54be12166f97e64c71c91 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 591209c79844c1ecbee79e6b5a019e5b61eab8d3 (diff) |
cxl/test: Replace ENXIO with EBUSY for inject poison limit reached
The CXL driver was recently updated to return EBUSY rather than
ENXIO when the device reports that an injection request exceeds
the device's limit. That change to EBUSY allows debug users to
differentiate between limit reached and inject failures for any
other reason.
Change cxl-test to also return EBUSY and tidy up the dev_dbg()
messaging to emit the correct limit.
Reminder: the cxl-test per device injection limit is a configurable
attribute: /sys/bus/platform/drivers/cxl_mock_mem/poison_inject_max
Signed-off-by: Alison Schofield <[email protected]>
Tested-by: Xingtao Yao <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Link: https://patch.msgid.link/ba1b80e1658b644d85d0d5e2287112d00a48b9cf.1720316188.git.alison.schofield@intel.com
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions