aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSebastian Siewior <[email protected]>2007-06-06 04:03:58 +0000
committerPaul Mackerras <[email protected]>2007-06-07 01:44:40 +0000
commit87873c86802ba7ff9d9550d06459a6e99d72c5eb (patch)
treec077539fbf5eca8010d4edfa8fd5771a4926101c /net/unix/af_unix.c
parent[POWERPC] Add table of contents to booting-without-of.txt (diff)
downloadkernel-87873c86802ba7ff9d9550d06459a6e99d72c5eb.tar.gz
kernel-87873c86802ba7ff9d9550d06459a6e99d72c5eb.zip
[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 <[email protected]> Signed-off-by: Jeremy Kerr <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions