From: Yan Zheng Date: Mon, 8 Oct 2007 17:08:37 +0000 (-0700) Subject: fix page release issue in filemap_fault X-Git-Tag: v2.6.23~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=745ad48e8cac47beec0b2f72dc3c64424bce1fec;p=linux-2.6-omap-h63xx.git 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 Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/filemap.c b/mm/filemap.c index 90b657b50f8..15c8413ee92 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -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; }