1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-21 05:44:14 +00:00
Chris Ye ef9102004a nvdimm: Fix badblocks clear off-by-one error
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: 23f498448362 ("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>
2022-06-24 11:57:19 -07:00
..
2022-04-28 14:01:55 -07:00
2022-04-28 14:01:55 -07:00
2022-04-28 14:01:55 -07:00
2022-04-28 14:01:55 -07:00
2022-04-28 14:01:55 -07:00
2022-05-27 21:24:19 -07:00
2022-04-28 14:01:55 -07:00
2022-04-28 14:01:55 -07:00
2022-01-14 18:50:52 -05:00