diff options
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/coredump.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c index 0c6a96b82b2d..b962c3ab470c 100644 --- a/arch/powerpc/platforms/cell/spufs/coredump.c +++ b/arch/powerpc/platforms/cell/spufs/coredump.c | |||
@@ -133,8 +133,6 @@ static struct spu_context *coredump_next_context(int *fd) | |||
133 | if (ctx->flags & SPU_CREATE_NOSCHED) | 133 | if (ctx->flags & SPU_CREATE_NOSCHED) |
134 | continue; | 134 | continue; |
135 | 135 | ||
136 | /* start searching the next fd next time we're called */ | ||
137 | (*fd)++; | ||
138 | break; | 136 | break; |
139 | } | 137 | } |
140 | 138 | ||
@@ -157,6 +155,9 @@ int spufs_coredump_extra_notes_size(void) | |||
157 | break; | 155 | break; |
158 | 156 | ||
159 | size += rc; | 157 | size += rc; |
158 | |||
159 | /* start searching the next fd next time */ | ||
160 | fd++; | ||
160 | } | 161 | } |
161 | 162 | ||
162 | return size; | 163 | return size; |
@@ -239,6 +240,9 @@ int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset) | |||
239 | } | 240 | } |
240 | 241 | ||
241 | spu_release_saved(ctx); | 242 | spu_release_saved(ctx); |
243 | |||
244 | /* start searching the next fd next time */ | ||
245 | fd++; | ||
242 | } | 246 | } |
243 | 247 | ||
244 | return 0; | 248 | return 0; |