Re: [BUG]Missing i_sb NULL pointer check in destroy_inode()

From: Andrew Morton
Date: Mon Nov 24 2003 - 14:28:25 EST


Mingming Cao <cmm@xxxxxxxxxx> wrote:
>
> destroy_inode() dereferences inode->i_sb without checking if it is NULL.
> This is inconsistent with its caller: iput() and clear_inode(), both of
> which check inode->i_sb before dereferencing it.

I assume this has only been observed with an out-of-tree filesystem, but
yes, the consistency is good.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/