Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67356
b: refs/heads/master
c: 9e25ae6
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Sep 19, 2007
1 parent 240c49b commit 7aac111
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 7af1443a9d319132087e1e9a3984b94c6998835c
refs/heads/master: 9e25ae6d91e7fb058c8957c2a64dc3ca0377dd5b
4 changes: 4 additions & 0 deletions trunk/arch/powerpc/platforms/cell/spufs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ static ssize_t do_coredump_read(int num, struct spu_context *ctx, void *buffer,
*/
static int spufs_dump_write(struct file *file, const void *addr, int nr, loff_t *foffset)
{
unsigned long limit = current->signal->rlim[RLIMIT_CORE].rlim_cur;
ssize_t written;

if (*foffset + nr > limit)
return -EIO;

written = file->f_op->write(file, addr, nr, &file->f_pos);
*foffset += written;

Expand Down

0 comments on commit 7aac111

Please sign in to comment.