summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2015-10-02 01:36:59 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-10-02 04:42:35 +0300
commit8346c416d17bf5b4ea1508662959bb62e73fd6a5 (patch)
tree059bcaf04ab8cce9fdc5b3d6698044da7ade9de8 /Kbuild
parent2f84a8990ebbe235c59716896e017c6b2ca1200f (diff)
downloadlinux-8346c416d17bf5b4ea1508662959bb62e73fd6a5.tar.xz
dax: fix NULL pointer in __dax_pmd_fault()
Commit 46c043ede471 ("mm: take i_mmap_lock in unmap_mapping_range() for DAX") moved some code in __dax_pmd_fault() that was responsible for zeroing newly allocated PMD pages. The new location didn't properly set up 'kaddr', so when run this code resulted in a NULL pointer BUG. Fix this by getting the correct 'kaddr' via bdev_direct_access(). Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Reported-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Matthew Wilcox <willy@linux.intel.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Cc: Dave Chinner <david@fromorbit.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions