aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pfn_t.h
diff options
context:
space:
mode:
authorJan H. Schönherr <jschoenh@amazon.de>2018-01-19 16:26:33 -0800
committerDan Williams <dan.j.williams@intel.com>2018-01-19 16:29:56 -0800
commit77dd66a3c67c93ab401ccc15efff25578be281fd (patch)
tree3787433794cb87a82998f80b7505da548a0c4649 /include/linux/pfn_t.h
parentmm: Fix memory size alignment in devm_memremap_pages_release() (diff)
downloadlinux-dev-77dd66a3c67c93ab401ccc15efff25578be281fd.tar.xz
linux-dev-77dd66a3c67c93ab401ccc15efff25578be281fd.zip
mm: Fix devm_memremap_pages() collision handling
If devm_memremap_pages() detects a collision while adding entries to the radix-tree, we call pgmap_radix_release(). Unfortunately, the function removes *all* entries for the range -- including the entries that caused the collision in the first place. Modify pgmap_radix_release() to take an additional argument to indicate where to stop, so that only newly added entries are removed from the tree. Cc: <stable@vger.kernel.org> Fixes: 9476df7d80df ("mm: introduce find_dev_pagemap()") Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/pfn_t.h')
0 files changed, 0 insertions, 0 deletions