Ming Lei a525a3ddea 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 <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-16 10:32:07 -07:00
..
2012-07-19 10:39:21 +02:00
2012-05-04 16:33:16 -07:00
2012-07-29 21:24:13 +04:00
2012-03-14 07:44:11 +01:00
2010-05-21 09:37:29 -07:00