From: Amitkumar Karwar Date: Tue, 23 Jul 2013 02:17:48 +0000 (-0700) Subject: mwifiex: move del_timer_sync(scan_delay_timer) call to fix memleak X-Git-Tag: v3.12-rc1~132^2~297^2^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=003d87cbece50c2a558c954b7ce915dcc70acba7;p=pandora-kernel.git mwifiex: move del_timer_sync(scan_delay_timer) call to fix memleak Currently it is in mwifiex_adapter_cleanup() which doesn't get called if driver initialization is failed causing memory leak. scan_delay_timer is initialized in mwifiex_register(), so it should be deleted in mwifiex_unregister(). Hence it has been moved to appropriate place. Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao Signed-off-by: John W. Linville --- Reading git-diff-tree failed