[PATCH v2] fsl_elbc_nand: fix mtd name

Scott Wood scottwood at freescale.com
Wed Mar 19 03:11:39 EST 2008


On Tue, Mar 18, 2008 at 06:58:14PM +0300, Anton Vorontsov wrote:
> Oops, forgot the NULL checking.
[snip] 
> +	if (priv->mtd.name)
> +		kfree(priv->mtd.name);
> +

Not needed; kfree(NULL) is a no-op.

-Scott



More information about the Linuxppc-dev mailing list