From: Ming Lei Date: Tue, 24 Jul 2012 17:42:29 +0000 (+0800) Subject: driver core: free devres in device_release X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~76^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a525a3ddeaca69f405d98442ab3c0746e53168dc;p=pandora-kernel.git driver core: free devres in device_release device_del can happen anytime, so once it happens, the devres of the device will be freed inside device_del, but drivers can't know it has been deleted and may still add resources into the device, so memory leak is caused. This patch moves the devres_release_all to fix the problem. Signed-off-by: Ming Lei Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed