]> git.hungrycats.org Git - linux/commit
[PATCH] Fix a NULL pointer bug in do_generic_file_read()
authorDavid Howells <dhowells@redhat.com>
Tue, 31 Aug 2004 03:38:57 +0000 (20:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 31 Aug 2004 03:38:57 +0000 (20:38 -0700)
commita3f5b14ed7a7e9d524b05db64b6a26911ec95a2b
tree52c21bf61b91821eddb1b4188cca7815562abe55
parent9691cc0d7cf7dd7908952177dd332c458446bf78
[PATCH] Fix a NULL pointer bug in do_generic_file_read()

The attached patch fixes a bug introduced into do_generic_mapping_read() by
which a file pointer becomes required.  I'd arranged things so that the
file pointer was optional so that I could call the function directly on an
inode.

Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/filemap.c