Skip to content

Commit 356e72a

Browse files
author
Fox Snowpatch
committed
1 parent 85ff933 commit 356e72a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/powerpc/platforms/cell/spu_base.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,10 @@ static int __init create_spu(void *data)
581581
goto out_destroy;
582582

583583
ret = spu_create_dev(spu);
584-
if (ret)
584+
if (ret) {
585+
put_device(&spu->dev);
585586
goto out_free_irqs;
587+
}
586588

587589
mutex_lock(&cbe_spu_info[spu->node].list_mutex);
588590
list_add(&spu->cbe_list, &cbe_spu_info[spu->node].spus);

0 commit comments

Comments
 (0)