aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dax
diff options
context:
space:
mode:
authorToshi Kani <toshi.kani@hpe.com>2017-07-07 17:44:26 -0600
committerDan Williams <dan.j.williams@intel.com>2017-07-17 11:43:58 -0700
commit4e3f0701f25ab194c5362576b1146a1e6cc6c2e7 (patch)
tree4ca26b53cd5798187dcd89b6ed0a32d5f2b20a64 /drivers/dax
parentLinux v4.13-rc1 (diff)
downloadlinux-dev-4e3f0701f25ab194c5362576b1146a1e6cc6c2e7.tar.xz
linux-dev-4e3f0701f25ab194c5362576b1146a1e6cc6c2e7.zip
libnvdimm: fix badblock range handling of ARS range
__add_badblock_range() does not account sector alignment when it sets 'num_sectors'. Therefore, an ARS error record range spanning across two sectors is set to a single sector length, which leaves the 2nd sector unprotected. Change __add_badblock_range() to set 'num_sectors' properly. Cc: <stable@vger.kernel.org> Fixes: 0caeef63e6d2 ("libnvdimm: Add a poison list and export badblocks") Signed-off-by: Toshi Kani <toshi.kani@hpe.com> Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions