Return-path: Received: from mail-qc0-f180.google.com ([209.85.216.180]:35889 "EHLO mail-qc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752678Ab3EGUPk (ORCPT ); Tue, 7 May 2013 16:15:40 -0400 Received: by mail-qc0-f180.google.com with SMTP id a10so546095qcx.39 for ; Tue, 07 May 2013 13:15:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <477F20668A386D41ADCC57781B1F70430DD2C9FC92@SC-VEXCH1.marvell.com> References: <477F20668A386D41ADCC57781B1F70430D9E0579DB@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9E14FF4C@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9E150221@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9E150A22@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430D9E232E33@SC-VEXCH1.marvell.com> <477F20668A386D41ADCC57781B1F70430DD2C9FC92@SC-VEXCH1.marvell.com> Date: Tue, 7 May 2013 14:15:38 -0600 Message-ID: (sfid-20130507_221544_868433_0C5A5D79) Subject: Re: Memory leak in mwifiex_cfg80211_scan From: Daniel Drake To: Bing Zhao Cc: "linux-wireless@vger.kernel.org" , Amitkumar Karwar Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, May 6, 2013 at 12:42 PM, Bing Zhao wrote: > There are two different static mwifiex_free_adapter() functions which cause confusion. > The 1/2 patch renames the one in init.c to mwifiex_adapter_cleanup(). Thanks, that was confusing indeed. With these patches I can't trigger any further crashes. I think you should use del_timer_sync() though, for the SMP case where the timer may be running on a different processor. Daniel