diff options
author | Ming Lei <tom.leiming@gmail.com> | 2012-07-24 21:42:29 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 21:32:07 +0400 |
commit | a525a3ddeaca69f405d98442ab3c0746e53168dc (patch) | |
tree | 51198c610f85622549fd679bb3cf3e1940844829 /include/linux/platform_device.h | |
parent | 2221f6ef71d4b89ed56a233cc0200bbe9b84a385 (diff) | |
download | linux-a525a3ddeaca69f405d98442ab3c0746e53168dc.tar.xz |
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>
Diffstat (limited to 'include/linux/platform_device.h')
0 files changed, 0 insertions, 0 deletions