]> git.karo-electronics.de Git - karo-tx-linux.git/commit
readahead: fix NULL filp dereference
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 6 Apr 2010 21:34:53 +0000 (14:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:19 +0000 (07:41 -0700)
commita54573d774735cc1f9d0e3bbf2c197c2d9523fe8
tree6f61c1c542a2b3c294232ae3c28e5dbbe82bbe16
parent957c93832c0f484ced1fbeca058375fa939b0ff9
readahead: fix NULL filp dereference

commit 70655c06bd3f25111312d63985888112aed15ac5 upstream.

btrfs relocate_file_extent_cluster() calls us with NULL filp:

  [ 4005.426805] BUG: unable to handle kernel NULL pointer dereference at 00000021
  [ 4005.426818] IP: [<c109a130>] page_cache_sync_readahead+0x18/0x3e

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Yan Zheng <yanzheng@21cn.com>
Reported-by: Kirill A. Shutemov <kirill@shutemov.name>
Tested-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/readahead.c