From c63f5da00845143de621e991ea186be0829647ee Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 25 Mar 2014 12:44:13 +0800 Subject: [PATCH] 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-format-patch failed