diff options
| author | Muchun Song <songmuchun@bytedance.com> | 2026-09-24 10:50:34 +0800 |
|---|---|---|
| committer | Alison Schofield <alison.schofield@intel.com> | 2026-10-15 18:07:31 -0700 |
| commit | df6cc0a24717c38ac81b5ba1e839c35e74e667dc (patch) | |
| tree | 9a75f993f98027454ceffe5284a7a13875ca6b39 /tools/lib/python/kdoc/python_version.py | |
| parent | a4bfbfb4e98a62b589ac7ca9e73e9612bfe8cab7 (diff) | |
dax/bus: Return errors for invalid mapping targets
After the DAX configuration locking was converted to rwsems, successful
lock acquisition leaves rc set to zero in mapping_store(). Two error
paths can return this stale value: an unbound region driver and a
misaligned range size. The sysfs write therefore reports success without
allocating the requested range.
Return -ENXIO when the region driver is not bound and -EINVAL when the
range size is misaligned.
Fixes: c05ae9d85b47 ("dax/bus.c: replace driver-core lock usage by a local rwsem")
Assisted-by: LLM
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Jianyun Gao <jianyungao89@gmail.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://patch.msgid.link/20260924025035.1265035-2-songmuchun@bytedance.com
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
