summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorYuquan Wang <wangyuquan1236@phytium.com.cn>2025-02-19 07:00:29 +0300
committerDave Jiang <dave.jiang@intel.com>2025-03-15 01:01:04 +0300
commit2da9ad027e8094c0944b7dfc28c9e3db368d61cc (patch)
tree968c29087cfd0ba56874611b3b3a0bf24afbc2ef /tools/testing/selftests/bpf/prog_tests/autoload.c
parente0feac20d150949dc8b74c1c5998dea70d19bf35 (diff)
downloadlinux-2da9ad027e8094c0944b7dfc28c9e3db368d61cc.tar.xz
cxl/pmem: debug invalid serial number data
In a nvdimm interleave-set each device with an invalid or zero serial number may cause pmem region initialization to fail, but in cxl case such device could still set cookies of nd_interleave_set and create a nvdimm pmem region. This adds the validation of serial number in cxl pmem region creation. The event of no serial number would cause to fail to set the cookie and pmem region. For cxl-test to work properly, always +1 on mock device's serial number. Signed-off-by: Yuquan Wang <wangyuquan1236@phytium.com.cn> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://patch.msgid.link/20250219040029.515451-2-wangyuquan1236@phytium.com.cn Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions