linux-stable-rt/arch/powerpc/platforms/cell
Sebastian Siewior 87873c8680 [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 <bigeasy@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-06-07 11:44:40 +10:00
..
spufs [POWERPC] spufs: Fix error handling in spufs_fill_dir() 2007-06-07 11:44:40 +10:00
Kconfig
Makefile
cbe_cpufreq.c [POWERPC] cbe_cpufreq: Limit frequency via cpufreq notifier chain 2007-06-07 11:44:40 +10:00
cbe_regs.c
cbe_regs.h
cbe_thermal.c
interrupt.c
interrupt.h
io-workarounds.c
iommu.c
pervasive.c
pervasive.h
pmu.c
ras.c
ras.h
setup.c
smp.c
spider-pic.c
spu_base.c
spu_callbacks.c
spu_coredump.c
spu_manage.c
spu_priv1_mmio.c
spu_priv1_mmio.h
spu_syscalls.c