]> 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)
commit2606f5abece47171a4583aff548b2ca710e50779
tree12ea65fd3b4a177e9e503a527c0ff3571ca20bfe
parent4ee6f5438677ae39da82e4bcc387155702236212
nfit: fix region registration vs block-data-window ranges

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