diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2009-09-19 13:18:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-22 23:00:07 +0200 |
commit | 051b982bcc620695de629d29c333c95b66e9b95e (patch) | |
tree | 907229a896c19440e0a046b54fd6823a75ccabee /usr | |
parent | smsc95xx: add additional USB product IDs (diff) | |
download | linux-051b982bcc620695de629d29c333c95b66e9b95e.tar.xz linux-051b982bcc620695de629d29c333c95b66e9b95e.zip |
kaweth: Fix memory leak in kaweth_control()
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>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions