fix page release issue in filemap_fault
authorYan Zheng <yanzheng@21cn.com>
Mon, 8 Oct 2007 17:08:37 +0000 (10:08 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 8 Oct 2007 19:58:14 +0000 (12:58 -0700)
commit745ad48e8cac47beec0b2f72dc3c64424bce1fec
treea16a8eedb7d6e27eaba86fd0cca8ea7bfd0cdcd8
parentdd204d63cd11509081b41d7ab305fdc173382039
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>
mm/filemap.c