linux-stable/drivers/nvdimm
Chris Ye e468764b5f nvdimm: Fix badblocks clear off-by-one error
commit ef9102004a upstream.

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: 23f4984483 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-07 17:31:16 +02:00
..
blk.c
btt.c libnvdimm: Fix endian conversion issues 2020-06-11 09:22:55 +02:00
btt.h libnvdimm/btt: Fix LBA masking during 'free list' population 2020-05-27 16:43:09 +02:00
btt_devs.c libnvdimm/btt: Fix LBA masking during 'free list' population 2020-05-27 16:43:09 +02:00
bus.c nvdimm: Fix badblocks clear off-by-one error 2022-07-07 17:31:16 +02:00
claim.c
core.c
dax_devs.c libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
dimm.c
dimm_devs.c libnvdimm/dimm: Avoid race between probe and available_slots_show() 2021-03-03 18:22:54 +01:00
e820.c
Kconfig
label.c libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels 2020-12-29 13:47:11 +01:00
label.h libnvdimm: Fix compilation warnings with W=1 2019-06-19 08:20:57 +02:00
Makefile
namespace_devs.c libnvdimm: Fix endian conversion issues 2020-06-11 09:22:55 +02:00
nd-core.h libnvdimm, pfn: Pad pfn namespaces relative to other regions 2018-12-13 09:18:54 +01:00
nd.h block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h> 2020-09-09 19:03:12 +02:00
pfn.h libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
pfn_devs.c libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
pmem.c libnvdimm/pmem: Bypass CONFIG_HARDENED_USERCOPY overhead 2019-05-31 06:47:11 -07:00
pmem.h
region.c
region_devs.c libnvdimm, pfn: Pad pfn namespaces relative to other regions 2018-12-13 09:18:54 +01:00