Re: [PATCH] vfs: initialize d_iname to null for long file names

From: Christoph Hellwig
Date: Wed Nov 26 2008 - 11:45:29 EST


On Wed, Nov 26, 2008 at 09:41:05PM +0800, Wu Fengguang wrote:
> dentry->d_iname is currently uninitialized for long file names. Init
> it to null string to avoid bad behaviors on careless references to it.

I don't really see the point. If your code references it's already
buggy. The only proper way to acces it is through dentry->d_name.

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