android_kernel_samsung_msm8976/arch/powerpc/platforms/cell/spufs
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
..
backing_ops.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
context.c [POWERPC] spufs: Synchronize pte invalidation vs ps close 2007-06-07 11:44:39 +10:00
coredump.c
fault.c
file.c [POWERPC] spufs: Synchronize pte invalidation vs ps close 2007-06-07 11:44:39 +10:00
gang.c
hw_ops.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
inode.c [POWERPC] spufs: Fix error handling in spufs_fill_dir() 2007-06-07 11:44:40 +10:00
lscsa_alloc.c [POWERPC] Spufs support for 64K LS mappings on 4K kernels 2007-05-09 16:35:00 +10:00
Makefile [POWERPC] Spufs support for 64K LS mappings on 4K kernels 2007-05-09 16:35:00 +10:00
run.c
sched.c [POWERPC] spufs: Don't yield nosched context 2007-06-07 11:44:40 +10:00
spu_restore.c
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_save.c
spu_save_crt0.S
spu_save_dump.h_shipped
spu_utils.h
spufs.h [POWERPC] spufs: Synchronize pte invalidation vs ps close 2007-06-07 11:44:39 +10:00
switch.c [POWERPC] Spufs support for 64K LS mappings on 4K kernels 2007-05-09 16:35:00 +10:00
syscalls.c