nfit: fix region registration vs block-data-window ranges
authorDan Williams <dan.j.williams@intel.com>
Mon, 2 Apr 2018 23:49:30 +0000 (16:49 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 2 Apr 2018 23:49:30 +0000 (16:49 -0700)
commit8d0d8ed3356aa9ed43b819aaedd39b08ca453007
tree12ea65fd3b4a177e9e503a527c0ff3571ca20bfe
parent466d1493ea830789a2f063f478aaed2e324f0d3d
nfit: fix region registration vs block-data-window ranges

Commit 1cf03c00e7c1 "nfit: scrub and register regions in a workqueue"
mistakenly attempts to register a region per BLK aperture. There is
nothing to register for individual apertures as they belong as a set to
a BLK aperture group that are registered with a corresponding
DIMM-control-region. Filter them for registration to prevent some
needless devm_kzalloc() allocations.

Cc: <stable@vger.kernel.org>
Fixes: 1cf03c00e7c1 ("nfit: scrub and register regions in a workqueue")
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c