diff options
author | Ross Zwisler <[email protected]> | 2015-10-01 15:36:59 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-10-01 21:42:35 -0400 |
commit | 8346c416d17bf5b4ea1508662959bb62e73fd6a5 (patch) | |
tree | 059bcaf04ab8cce9fdc5b3d6698044da7ade9de8 /lib/memory-notifier-error-inject.c | |
parent | 2f84a8990ebbe235c59716896e017c6b2ca1200f (diff) |
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 <[email protected]>
Reported-by: Dan Williams <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Dave Chinner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions