linux-stable/drivers/nvdimm
Chris Ye 1edcdff8a8 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:35:09 +02:00
..
Kconfig
Makefile
badrange.c
blk.c block: genhd: add 'groups' argument to device_add_disk 2021-03-11 14:04:59 +01:00
btt.c block: genhd: add 'groups' argument to device_add_disk 2021-03-11 14:04:59 +01:00
btt.h libnvdimm/btt: Fix LBA masking during 'free list' population 2020-05-27 17:37:39 +02:00
btt_devs.c libnvdimm/btt: Fix LBA masking during 'free list' population 2020-05-27 17:37:39 +02:00
bus.c nvdimm: Fix badblocks clear off-by-one error 2022-07-07 17:35:09 +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-04 09:39:56 +01:00
e820.c
label.c libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels 2020-12-30 11:26:17 +01:00
label.h
namespace_devs.c libnvdimm: Fix endian conversion issues 2020-06-07 13:17:53 +02:00
nd-core.h
nd.h
of_pmem.c
pfn.h
pfn_devs.c
pmem.c block: genhd: add 'groups' argument to device_add_disk 2021-03-11 14:04:59 +01:00
pmem.h
region.c
region_devs.c