> On Mon, 22 Sep 2008 11:46:10 +0530 Krishna Kumar <krkumar2@in.ibm.com> wrote:
Andrew, current do_generic_file_read have filp dereference at the beginning of function.
So, I believe nobody pass to NULL.
static void do_generic_file_read(struct file *filp, loff_t *ppos,
read_descriptor_t *desc, read_actor_t actor)
{
struct address_space *mapping = filp->f_mapping; /* here */
struct inode *inode = mapping->host;
struct file_ra_state *ra = &filp->f_ra; /* ditto */
pgoff_t index;
pgoff_t last_index;
pgoff_t prev_index;
--