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
..
Kconfig
Makefile
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
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
label.c libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels 2020-12-29 13:47:11 +01:00
label.h
namespace_devs.c libnvdimm: Fix endian conversion issues 2020-06-11 09:22:55 +02:00
nd-core.h
nd.h block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h> 2020-09-09 19:03:12 +02:00
pfn.h
pfn_devs.c
pmem.c
pmem.h
region.c
region_devs.c