]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] usb: ati remote memleak fix
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Sat, 25 Nov 2006 19:09:38 +0000 (11:09 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 25 Nov 2006 21:28:34 +0000 (13:28 -0800)
commit05ac51df9a5483851c1dc3571025a329b080158a
treebba4591cd3564a499481d662ed931c5be1d040c2
parentb48cbb291739b312a5eed1034634220305cee042
[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 <m.kozlowski@tuxland.pl>
Acked-by: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/usb/input/ati_remote.c