Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116916
b: refs/heads/master
c: f027faa
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Kerr committed Oct 21, 2008
1 parent 5a74228 commit d188ca1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14f693eeb5b16bc47ffa38d8b8838a654aedd53f
refs/heads/master: f027faa231f38c02e949352735eac76f29090809
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,11 @@ spufs_regs_read(struct file *file, char __user *buffer,
int ret;
struct spu_context *ctx = file->private_data;

/* pre-check for file position: if we'd return EOF, there's no point
* causing a deschedule */
if (*pos >= sizeof(ctx->csa.lscsa->gprs))
return 0;

ret = spu_acquire_saved(ctx);
if (ret)
return ret;
Expand Down

0 comments on commit d188ca1

Please sign in to comment.