diff options
author | Alison Schofield <[email protected]> | 2024-07-06 18:53:43 -0700 |
---|---|---|
committer | Dave Jiang <[email protected]> | 2024-07-10 17:12:42 -0700 |
commit | 591209c79844c1ecbee79e6b5a019e5b61eab8d3 (patch) | |
tree | 02f98b81986b1fb6078be0d6df4fee540f43f1de /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | bebfbbaffccfb69126c5a6a1d41cd868b6419370 (diff) |
cxl/memdev: Replace ENXIO with EBUSY for inject poison limit reached
The CXL driver provides a debugfs interface offering users the
ability to inject and clear poison to a memdev. Once a user has
injected up to the devices limit further injection requests fail
with ENXIO until a clear poison is issued.
Users may not have device specs in hand or may want to intentionally
hit the limit and then clear. Replace the usual ENXIO return status
with EBUSY so users can recognize this failure.
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/825bd4c67fb55a4373c4182d999ad49d4e6b4fe7.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