summaryrefslogtreecommitdiffstats
path: root/mm/process_vm_access.c
diff options
context:
space:
mode:
authorChris Ye <chris.ye@intel.com>2022-05-31 17:09:54 -0700
committerDan Williams <dan.j.williams@intel.com>2022-06-24 11:57:19 -0700
commitef9102004a87cb3f8b26e000a095a261fc0467d3 (patch)
tree48ed6a2026e49edcda4ae2ec06a5ca962eaa2d08 /mm/process_vm_access.c
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e (diff)
downloadlinux-ef9102004a87cb3f8b26e000a095a261fc0467d3.tar.bz2
nvdimm: Fix badblocks clear off-by-one error
nvdimm_clear_badblocks_region() validates badblock clearing requests against the span of the region, however it compares the inclusive badblock request range to the exclusive region range. Fix up the off-by-one error. Fixes: 23f498448362 ("libnvdimm: rework region badblocks clearing") Cc: <stable@vger.kernel.org> Signed-off-by: Chris Ye <chris.ye@intel.com> Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Link: https://lore.kernel.org/r/165404219489.2445897.9792886413715690399.stgit@dwillia2-xfh Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mm/process_vm_access.c')
0 files changed, 0 insertions, 0 deletions