From c36076c18caec5bce716c5dc994c3c1f01986c73 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Mon, 9 Jun 2008 22:20:42 +1000 Subject: [PATCH] --- yaml --- r: 98180 b: refs/heads/master c: 8b9dba2ce28f64246198704b23f133bed5429e62 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/macintosh/smu.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 37cbf20745bc..a1926960536e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bad5232ba266ae2c666c17be236152fb2d8ada3b +refs/heads/master: 8b9dba2ce28f64246198704b23f133bed5429e62 diff --git a/trunk/drivers/macintosh/smu.c b/trunk/drivers/macintosh/smu.c index 77ad192962c5..d86d57af282a 100644 --- a/trunk/drivers/macintosh/smu.c +++ b/trunk/drivers/macintosh/smu.c @@ -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);