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);