aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkinobu Mita <mita@fixstars.com>2007-04-23 15:08:18 -0400
committerArnd Bergmann <arnd@klappe.arndb.de>2007-04-23 15:18:56 -0400
commit577f8f1021f9ee6ef2a98a142652759ec122d27f (patch)
tree4d83409765bca551223ead236733e69d6998a111
parente45d48a34d4d1862d28d22c2533b8c6bb83b8c1f (diff)
[POWERPC] spufs: check spu_acquire_runnable() return value
This patch checks return value of spu_acquire_runnable() in spufs_mfc_write(). Signed-off-by: Akinobu Mita <mita@fixstars.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c5
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 deb340e6e0ae..525d6b00cba2 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 {