From: Mariusz Kozlowski Date: Sat, 25 Nov 2006 19:09:38 +0000 (-0800) Subject: [PATCH] usb: ati remote memleak fix X-Git-Tag: v2.6.19~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dce447a542d8b4bedf13d6a4c4fc6737240372e;p=pandora-kernel.git [PATCH] usb: ati remote memleak fix This is a bug. When checking for ati_remote->outbuf we free freeing ati_remote->inbuf so we end up freeing ati_remote->inbuf twice. Also the checks for 'ati_remote->inbuf != NULL' and 'ati_remote->outbuf != NULL' are redundant as usb_buffer_free() does this. Signed-off-by: Mariusz Kozlowski Acked-by: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed