From: Sebastian Siewior Date: Wed, 6 Jun 2007 04:03:58 +0000 (+1000) Subject: [POWERPC] spufs: Fix error handling in spufs_fill_dir() X-Git-Tag: v2.6.22-rc5~102^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87873c86802ba7ff9d9550d06459a6e99d72c5eb;p=pandora-kernel.git [POWERPC] spufs: Fix error handling in spufs_fill_dir() 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 Signed-off-by: Jeremy Kerr Acked-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed