diff options
| author | 2026-09-24 10:50:34 +0800 | |
|---|---|---|
| committer | 2026-10-15 18:07:31 -0700 | |
| commit | df6cc0a24717c38ac81b5ba1e839c35e74e667dc (patch) | |
| tree | 9a75f993f98027454ceffe5284a7a13875ca6b39 /scripts/Makefile.thinlto | |
| parent | dax: fix dax_range_compare_iter() to use correct size and address offset (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
