From: Axel Lin Date: Tue, 25 Mar 2014 04:44:13 +0000 (+0800) Subject: spi: dw: Don't call kfree for memory allocated by devm_kzalloc X-Git-Tag: v3.15-rc1~147^2~5^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c63f5da00845143de621e991ea186be0829647ee;p=pandora-kernel.git spi: dw: Don't call kfree for memory allocated by devm_kzalloc With devm_kzalloc, the memory is automatically freed when spi_device detach from the bus. Fixes: commit 43f627ac9de42 (spi: dw: fix memory leak on error path) Signed-off-by: Axel Lin Acked-by: Baruch Siach Signed-off-by: Mark Brown Cc: stabe@vger.kernel.org --- Reading git-diff-tree failed