diff options
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index deb340e6e0..525d6b00cb 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -1443,7 +1443,10 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer, | |||
1443 | if (ret) | 1443 | if (ret) |
1444 | goto out; | 1444 | goto out; |
1445 | 1445 | ||
1446 | spu_acquire_runnable(ctx, 0); | 1446 | ret = spu_acquire_runnable(ctx, 0); |
1447 | if (ret) | ||
1448 | goto out; | ||
1449 | |||
1447 | if (file->f_flags & O_NONBLOCK) { | 1450 | if (file->f_flags & O_NONBLOCK) { |
1448 | ret = ctx->ops->send_mfc_command(ctx, &cmd); | 1451 | ret = ctx->ops->send_mfc_command(ctx, &cmd); |
1449 | } else { | 1452 | } else { |