lkml.org 
[lkml]   [2009]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] kaweth: Fix memory leak in kaweth_control()
From
From: Kevin Cernekee <cernekee@gmail.com>
Date: Fri, 18 Sep 2009 18:43:30 -0700

> kaweth_control() never frees the buffer that it allocates for the USB
> control message. Test case:
>
> while :; do ifconfig eth2 down ; ifconfig eth2 up ; done
>
> This is a tiny buffer so it is a slow leak. If you want to speed up the
> process, you can change the allocation size to e.g. 16384 bytes, and it
> will consume several megabytes within a few minutes.
>
> Signed-off-by: Kevin Cernekee <cernekee@gmail.com>

Applied, thanks.

I've been trying to wait to give time for people like david-b
to review and bless the various USB networking patches that have
been posted over the past few weeks but I'm running out of
patience :-)

So simple ones like this I'm just gonna apply.


\
 
 \ /
  Last update: 2009-09-22 23:21    [W:0.073 / U:1.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site