From: Chuansheng Liu Date: Tue, 25 Dec 2012 16:56:05 +0000 (+0800) Subject: ASoC: core: fix the memory leak in case of device_add() failure X-Git-Tag: v3.8-rc4~23^2~1^2~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=865df9cb122d9e5ecbbb7056f2c9c64933bf8dd0;p=pandora-kernel.git ASoC: core: fix the memory leak in case of device_add() failure After called device_initialize(), even device_add() returns error, we still need use the put_device() to release the reference to call rtd_release(), which will do the free() action. Signed-off-by: liu chuansheng Signed-off-by: Mark Brown --- Reading git-diff-tree failed