]> git.baikalelectronics.ru Git - kernel.git/commit
dax: fix mapping size check
authorDan Williams <dan.j.williams@intel.com>
Sat, 3 Sep 2016 17:36:00 +0000 (10:36 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 3 Sep 2016 17:40:57 +0000 (10:40 -0700)
commitae3749184140289c578a1857d835b54987b67b71
tree3080bceb1954d684c570fa96337098f433165f9b
parentf987612db0506b2cba4d9cae824062f861e0f3f2
dax: fix mapping size check

pgoff_to_phys() validates that both the starting address and the length
of the mapping against the resource list.  We need to check for a
mapping size of PMD_SIZE not PAGE_SIZE in the pmd fault path.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/dax.c