WSL2-Linux-Kernel/drivers/nvdimm
Chris Ye be74e588f1 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:53:24 +02:00
..
Kconfig
Makefile
badrange.c
blk.c nvdimm-blk: convert to blk_alloc_disk/blk_cleanup_disk 2021-06-01 07:42:23 -06:00
btt.c nvdimm/btt: do not call del_gendisk() if not needed 2021-11-18 19:17:06 +01:00
btt.h nvdimm-btt: convert to blk_alloc_disk/blk_cleanup_disk 2021-06-01 07:42:23 -06:00
btt_devs.c
bus.c nvdimm: Fix badblocks clear off-by-one error 2022-07-07 17:53:24 +02:00
claim.c
core.c nvdimm: Fix firmware activation deadlock scenarios 2022-06-09 10:23:08 +02:00
dax_devs.c
dimm.c libnvdimm: Make remove callback return void 2021-02-16 19:35:29 -08:00
dimm_devs.c libnvdimm: Export nvdimm shutdown helper, nvdimm_delete() 2021-06-15 16:47:22 -07:00
e820.c
label.c libnvdimm/labels: Add claim class helpers 2021-08-24 12:08:28 -07:00
label.h libnvdimm/labels: Add claim class helpers 2021-08-24 12:08:28 -07:00
namespace_devs.c cxl for v5.15 2021-09-09 11:48:27 -07:00
nd-core.h
nd.h libnvdimm/labels: Add claim class helpers 2021-08-24 12:08:28 -07:00
nd_virtio.c
of_pmem.c
pfn.h
pfn_devs.c
pmem.c nvdimm/pmem: cleanup the disk if pmem_release_disk() is yet assigned 2021-11-18 19:17:07 +01:00
pmem.h
region.c libnvdimm: Make remove callback return void 2021-02-16 19:35:29 -08:00
region_devs.c nvdimm/region: Fix default alignment for small regions 2022-04-08 14:23:48 +02:00
security.c nvdimm: Allow overwrite in the presence of disabled dimms 2022-06-09 10:23:08 +02:00
virtio_pmem.c
virtio_pmem.h