memory leak somewhere in the driver ?

Dan Williams dcbw at redhat.com
Tue Jul 27 15:29:22 EDT 2010


On Tue, 2010-07-27 at 17:11 +0200, chaenel at free.fr wrote:
> Hi all,
> 
> I use a custom board based on a BF537 processor, and a CF wifi module based on
> the marvell 8385.
> I use the uClinux distribution version 2009R1.1-RC4, but I have replaced the
> libertas driver of this distribution with the last libertas driver I have found,
> from kernel source 2.6.34.1.
> 
> In my board, when the wifi is not used, I "software" disconnect the wifi card to
> enter it in low consumption mode.
> To do that, I just eject the card :
> 
>     echo 1 > /sys/class/pcmcia_socket/pcmcia_socket0/card_eject
> 
> When I do this, the libertas driver is unloaded and the wifi card enter low
> consumption
> 
> When I want to use wifi, I reinsert the card :
> 
>     echo 1 > /sys/class/pcmcia_socket/pcmcia_socket0/card_insert
> 
> The libertas driver is loaded and wifi works well.
> 
> The only problem I have is when I do a lot of software load/unload of the wifi
> card, the memory free decrease, and after 1 or 2 day, there is no memory left
> and the board is out !!
> I think there is a memory leak somewhere in the libertas driver, but it's a big
> job for me to find it. Thus before to do that, can you tell me where I can find
> the very last version of the driver to test it and look if it works for my usage
> or not ?
> 
> On the git repository on http://git.infradead.org, I can see that the last
> commit is 2 year old ! I think the last version of the driver is not here !!??

In the Linux kernel.  That's been the official sources since it was
merged 3 or 4 years ago in the 2.6.22 kernel.

Dan





More information about the libertas-dev mailing list