Re: [PATCH] mm: do_generic_file_read() never gets a NULL 'filp' argument

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KOSAKI Motohiro
Date: Monday, September 22, 2008 - 1:40 am

> 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;






--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ..., Christoph Hellwig, (Mon Sep 22, 1:39 am)
Re: [PATCH] mm: do_generic_file_read() never gets a NULL ' ..., KOSAKI Motohiro, (Mon Sep 22, 1:40 am)