Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98180
b: refs/heads/master
c: 8b9dba2
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Paul Mackerras committed Jun 16, 2008
1 parent 6c3cc6f commit c36076c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: bad5232ba266ae2c666c17be236152fb2d8ada3b
refs/heads/master: 8b9dba2ce28f64246198704b23f133bed5429e62
5 changes: 4 additions & 1 deletion trunk/drivers/macintosh/smu.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,15 @@ int __init smu_init (void)

if (smu_cmdbuf_abs == 0) {
printk(KERN_ERR "SMU: Command buffer not allocated !\n");
of_node_put(np);
return -EINVAL;
}

smu = alloc_bootmem(sizeof(struct smu_device));
if (smu == NULL)
if (smu == NULL) {
of_node_put(np);
return -ENOMEM;
}
memset(smu, 0, sizeof(*smu));

spin_lock_init(&smu->lock);
Expand Down

0 comments on commit c36076c

Please sign in to comment.