From: Kevin Cernekee Date: Sat, 19 Sep 2009 11:18:21 +0000 (+0000) Subject: kaweth: Fix memory leak in kaweth_control() X-Git-Tag: v2.6.32-rc1~27^2~26 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=051b982bcc620695de629d29c333c95b66e9b95e;p=pandora-kernel.git 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 Acked-by: Oliver Neukum Signed-off-by: David S. Miller --- Reading git-diff-tree failed