commit | be74e588f1a5db165a31d2c39477b4c818a7351c | [log] [tgz] |
---|---|---|
author | Chris Ye <[email protected]> | Tue May 31 17:09:54 2022 -0700 |
committer | Greg Kroah-Hartman <[email protected]> | Thu Jul 07 17:53:24 2022 +0200 |
tree | 3bc82d402477d589622766eb81694f7a18597d23 | |
parent | 526b53192d09b7c8efefe36ba1671a3a4108f543 [diff] |
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: 23f498448362 ("libnvdimm: rework region badblocks clearing") Cc: <[email protected]> Signed-off-by: Chris Ye <[email protected]> Reviewed-by: Vishal Verma <[email protected]> Link: https://lore.kernel.org/r/165404219489.2445897.9792886413715690399.stgit@dwillia2-xfh Signed-off-by: Dan Williams <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>