From: David Miller <davem@davemloft.net>
To: cernekee@gmail.com
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH] kaweth: Fix memory leak in kaweth_control()
Date: Tue, 22 Sep 2009 14:19:14 -0700 (PDT) [thread overview]
Message-ID: <20090922.141914.61481427.davem@davemloft.net> (raw)
In-Reply-To: <6a1f935a6229adafb68d0e1ca7bc71fa@localhost>
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.
prev parent reply other threads:[~2009-09-22 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-19 1:43 [PATCH] kaweth: Fix memory leak in kaweth_control() Kevin Cernekee
2009-09-19 19:19 ` Oliver Neukum
2009-09-22 21:19 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090922.141914.61481427.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=cernekee@gmail.com \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox