[PATCH] Separate pci bits out of struct device_node

Hollis Blanchard hollis at penguinppc.org
Tue Sep 6 23:32:26 EST 2005


On Sep 5, 2005, at 11:31 PM, Paul Mackerras wrote:
>
> diff -urN linux-2.6/arch/ppc64/kernel/prom.c 
> pcidn/arch/ppc64/kernel/prom.c
> --- linux-2.6/arch/ppc64/kernel/prom.c	2005-08-30 11:43:32.000000000 
> +1000
> +++ pcidn/arch/ppc64/kernel/prom.c	2005-09-06 14:23:49.000000000 +1000
> @@ -1734,6 +1734,8 @@
>  	kfree(node->intrs);
>  	kfree(node->addrs);
>  	kfree(node->full_name);
> +	if (node->data)
> +		kfree(node->data);
>  	kfree(node);
>  }

kfree already checks for NULL, so the test is unnecessary above.

-Hollis




More information about the Linuxppc64-dev mailing list