On Fri, 26 Oct 2007 16:54:41 +1000 (EST) Michael Ellerman <[EMAIL PROTECTED]> 
wrote:
>
> +++ b/arch/powerpc/platforms/cell/axon_msi.c
> @@ -125,7 +125,7 @@ static struct axon_msic *find_msi_translator(struct 
> pci_dev *dev)
>               return NULL;
>       }
>  
> -     for (; dn; tmp = of_get_parent(dn), of_node_put(dn), dn = tmp) {
> +     for (; dn; dn = of_get_next_parent(dn)) {
>               ph = of_get_property(dn, "msi-translator", NULL);
>               if (ph)
>                       break;

You no longer assign anything to tmp, but just below here, you may jump
to out_error: which will do an of_node_put(tmp).  So you need to
initialise tmp or have another error goto label.

-- 
Cheers,
Stephen Rothwell                    [EMAIL PROTECTED]
http://www.canb.auug.org.au/~sfr/

Attachment: pgpmLwVXCMLho.pgp
Description: PGP signature

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to