diff options
author | 2013-05-06 19:46:54 -0700 | |
---|---|---|
committer | 2013-05-08 17:15:08 -0400 | |
commit | f16fdc9d2dc1e5b270e9a08377587e831e0d36ac (patch) | |
tree | 44f4aec9e330308b99af023cde45f031f7e284e6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mwifiex: clear is_suspended flag when interrupt is received early (diff) | |
download | linux-dev-f16fdc9d2dc1e5b270e9a08377587e831e0d36ac.tar.xz linux-dev-f16fdc9d2dc1e5b270e9a08377587e831e0d36ac.zip |
mwifiex: fix memory leak issue when driver unload
After unregister_netdevice() call the request is queued and
reg_state is changed to NETREG_UNREGISTERING.
As we check for NETREG_UNREGISTERED state, free_netdev() never
gets executed causing memory leak.
Initialize "dev->destructor" to free_netdev() to free device
data after unregistration.
Cc: <stable@vger.kernel.org>
Reported-by: Daniel Drake <dsd@laptop.org>
Tested-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions