android_kernel_motorola_sm6375/drivers/nvdimm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chris Ye d5e32f08e7 nvdimm: Fix badblocks clear off-by-one error
commit ef9102004a87cb3f8b26e000a095a261fc0467d3 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:36:48 +02:00
..
badrange.c
blk.c
btt.c
btt.h
btt_devs.c
bus.c nvdimm: Fix badblocks clear off-by-one error 2022-07-07 17:36:48 +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-02-10 09:25:30 +01:00
e820.c
Kconfig
label.c
label.h
Makefile
namespace_devs.c libnvdimm/region: Fix label activation vs errors 2021-08-18 08:56:57 +02:00
nd-core.h
nd.h
nd_virtio.c
of_pmem.c
pfn.h
pfn_devs.c
pmem.c libnvdimm/pmem: Fix crash triggered when I/O in-flight during unbind 2021-10-06 15:42:38 +02:00
pmem.h
region.c
region_devs.c libnvdimm/region: Fix nvdimm_has_flush() to handle ND_REGION_ASYNC 2021-04-21 12:56:16 +02:00
security.c nvdimm: Allow overwrite in the presence of disabled dimms 2022-06-14 18:11:40 +02:00
virtio_pmem.c
virtio_pmem.h