Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 577f8f10 authored by Akinobu Mita's avatar Akinobu Mita Committed by Arnd Bergmann
Browse files

[POWERPC] spufs: check spu_acquire_runnable() return value



This patch checks return value of spu_acquire_runnable() in
spufs_mfc_write().

Signed-off-by: default avatarAkinobu Mita <mita@fixstars.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
parent e45d48a3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1443,7 +1443,10 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer,
	if (ret)
		goto out;

	spu_acquire_runnable(ctx, 0);
	ret = spu_acquire_runnable(ctx, 0);
	if (ret)
		goto out;

	if (file->f_flags & O_NONBLOCK) {
		ret = ctx->ops->send_mfc_command(ctx, &cmd);
	} else {