mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
fix page release issue in filemap_fault
find_lock_page increases page's usage count, we should decrease it before return VM_FAULT_SIGBUS Signed-off-by: Yan Zheng<yanzheng@21cn.com> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
dd204d63cd
commit
745ad48e8c
1 changed files with 1 additions and 0 deletions
|
@ -1388,6 +1388,7 @@ retry_find:
|
|||
size = (i_size_read(inode) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;
|
||||
if (unlikely(vmf->pgoff >= size)) {
|
||||
unlock_page(page);
|
||||
page_cache_release(page);
|
||||
goto outside_data_content;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue