[Cbe-oss-dev] [patch 1/1] bugfix: fix error handling in spufs_fill_dir() (rev. 2)

Arnd Bergmann arnd at arndb.de
Wed Jun 6 01:05:50 EST 2007


On Tuesday 05 June 2007, Sebastian Siewior wrote:
> 
> The error path in spufs_fill_dir() is broken. If d_alloc_name() or
> spufs_new_file() fails, spufs_prune_dir() is getting called. At this time
> dir->inode is not set and a NULL pointer is dereferenced by mutex_lock().
> This bugfix replaces spufs_prune_dir() with a shorter version that does
> not touch dir->inode but simply removes all children.
> 
> Signed-off-by: Sebastian Siewior <bigeasy at linux.vnet.ibm.com>

Acked-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>



More information about the cbe-oss-dev mailing list