Search Linux Wireless

RE: Memory leak in mwifiex_cfg80211_scan

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

 



Hi Daniel,

> Hi,
> 
> The following test script triggers a memory leak:
> 
> insmod mwifiex_sdio.ko
> sleep 1
> ifconfig eth0 up
> iwlist eth0 scan &
> sleep 0.5
> rmmod mwifiex_sdio
> 
> kmemleak says:
> unreferenced object 0xed8bb200 (size 512):
>   comm "iwlist", pid 666, jiffies 4294952762 (age 16.330s)
>   hex dump (first 32 bytes):
>     00 00 00 00 00 00 00 00 00 e8 b8 8b ed 01 01 00  ................
>     01 00 00 00 00 00 02 00 01 00 00 00 00 00 03 00  ................
>   backtrace:
>     [<c00a7f1c>] create_object+0x118/0x2b0
>     [<c03db82c>] kmemleak_alloc+0x80/0xc4
>     [<c00a3444>] kmem_cache_alloc+0xa8/0x110
>     [<c022f8ac>] mwifiex_cfg80211_scan+0xc0/0x300
>     [<c03bfe2c>] cfg80211_wext_siwscan+0x280/0x2f8
>     [<c03d7cf8>] ioctl_standard_call+0x290/0x3b8
>     [<c03d7f14>] wext_handle_ioctl+0xf4/0x1c0
>     [<c0308d70>] dev_ioctl+0x6b4/0x6dc
>     [<c02f3f00>] sock_ioctl+0x254/0x28c
>     [<c00b994c>] vfs_ioctl+0x30/0x44
>     [<c00ba504>] do_vfs_ioctl+0x560/0x5b8
>     [<c00ba59c>] sys_ioctl+0x40/0x68
>     [<c000eb40>] ret_fast_syscall+0x0/0x30
>     [<ffffffff>] 0xffffffff

Thanks for reporting this issue.
Please find attached the patch and try it on your XO4.

I will resend the patch to the list if it works for you.

Thanks,
Bing

Attachment: 0001-mwifiex-fix-memory-leak-in-mwifiex_cfg80211_scan.patch
Description: 0001-mwifiex-fix-memory-leak-in-mwifiex_cfg80211_scan.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