summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/crt0.S
diff options
context:
space:
mode:
authorSebastian Siewior <bigeasy@linux.vnet.ibm.com>2007-06-06 14:03:58 +1000
committerPaul Mackerras <paulus@samba.org>2007-06-07 11:44:40 +1000
commit87873c86802ba7ff9d9550d06459a6e99d72c5eb (patch)
treec077539fbf5eca8010d4edfa8fd5771a4926101c /arch/powerpc/boot/crt0.S
parent5e1e9ba690a2e2135a8f997242f9c46d2b8ac033 (diff)
downloadop-kernel-dev-87873c86802ba7ff9d9550d06459a6e99d72c5eb.zip
op-kernel-dev-87873c86802ba7ff9d9550d06459a6e99d72c5eb.tar.gz
[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>
Diffstat (limited to 'arch/powerpc/boot/crt0.S')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud