Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116917
b: refs/heads/master
c: 837ef88
h: refs/heads/master
i:
  116915: 5a74228
v: v3
  • Loading branch information
Jeremy Kerr committed Oct 21, 2008
1 parent d188ca1 commit c4ec853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f027faa231f38c02e949352735eac76f29090809
refs/heads/master: 837ef884b702edd1c4514eaed1dbecd48721bd22
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ static int spufs_switch_log_open(struct inode *inode, struct file *file)
goto out;
}

ctx->switch_log = kzalloc(sizeof(struct switch_log) +
ctx->switch_log = kmalloc(sizeof(struct switch_log) +
SWITCH_LOG_BUFSIZE * sizeof(struct switch_log_entry),
GFP_KERNEL);

Expand All @@ -2451,6 +2451,7 @@ static int spufs_switch_log_open(struct inode *inode, struct file *file)
goto out;
}

ctx->switch_log->head = ctx->switch_log->tail = 0;
init_waitqueue_head(&ctx->switch_log->wait);
rc = 0;

Expand Down

0 comments on commit c4ec853

Please sign in to comment.