]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf32c4ac84d721f6a9c3a80709b3c62d09241db9
tree12ea65fd3b4a177e9e503a527c0ff3571ca20bfe
parentfb335871890c7e1f600c29614ab8c929d63a744e
nfit: fix region registration vs block-data-window ranges

Commit 769935d88caa "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: 769935d88caa ("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