diff options
author | Krishna Kumar <krkumar2@in.ibm.com> | 2008-10-15 22:01:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 11:21:29 -0700 |
commit | 0c6aa2639ea83bfb7f91d72118bad70b3f60012a (patch) | |
tree | 7ed277716200bdd949491aad355a2edf6d0864f3 /mm/filemap.c | |
parent | b4d1d99fdd8b98fb03dfd6ef9b0ece220de38640 (diff) | |
download | lwn-0c6aa2639ea83bfb7f91d72118bad70b3f60012a.tar.gz lwn-0c6aa2639ea83bfb7f91d72118bad70b3f60012a.zip |
mm: do_generic_file_read() never gets a NULL 'filp' argument
The 'filp' argument to do_generic_file_read() is never NULL.
Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 876bc595d0f8..bf8f9c0c7a83 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -1186,8 +1186,7 @@ out: ra->prev_pos |= prev_offset; *ppos = ((loff_t)index << PAGE_CACHE_SHIFT) + offset; - if (filp) - file_accessed(filp); + file_accessed(filp); } int file_read_actor(read_descriptor_t *desc, struct page *page, |