Search Linux Wireless

RE: Memory leak in mwifiex_cfg80211_scan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

> I haven't tested it yet, but it doesn't look like a fix to me.
> 
> Surely the crash here is that the timer_fn is running and using data
> that has been freed, like the netdev and the workqueue.

Please try attached patches instead.

> mwifiex_free_adapter() is called at the end of mwifiex_remove_card(),
> after it has freed a whole load of that stuff. If you are trying to
> stop the timer at this point, you are way too late.

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,
Bing

> 
> Daniel

Attachment: 0001-mwifiex-rename-mwifiex_free_adapter-routine.patch
Description: 0001-mwifiex-rename-mwifiex_free_adapter-routine.patch

Attachment: 0002-mwifiex-scan-delay-timer-cleanup-in-unload-path.patch
Description: 0002-mwifiex-scan-delay-timer-cleanup-in-unload-path.patch


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux