Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krishna Kumar and committed by
Linus Torvalds
0c6aa263 b4d1d99f

+1 -2
+1 -2
mm/filemap.c
··· 1186 1186 ra->prev_pos |= prev_offset; 1187 1187 1188 1188 *ppos = ((loff_t)index << PAGE_CACHE_SHIFT) + offset; 1189 - if (filp) 1190 - file_accessed(filp); 1189 + file_accessed(filp); 1191 1190 } 1192 1191 1193 1192 int file_read_actor(read_descriptor_t *desc, struct page *page,