From: Axel Lin Date: Thu, 20 Mar 2014 09:20:17 +0000 (+0800) Subject: spi: fsl-lib: Fix memory leak of pinfo X-Git-Tag: v3.15-rc1~147^2~5^6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7282326b722995c3fabd4dcd9244182b37500252;p=pandora-kernel.git spi: fsl-lib: Fix memory leak of pinfo of_mpc8xxx_spi_probe() allocates memory for pinfo but the memory is not freed anywhere. of_mpc8xxx_spi_probe() is called in .probe() and pinfo should be freed in .remove(), so convert kzalloc to devm_kzalloc to fix the memory leak. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-diff-tree failed