USB: fix memleak in usbfs
authorOliver Neukum <oliver@neukum.org>
Sun, 28 Jun 2009 21:34:14 +0000 (23:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 12 Jul 2009 22:16:39 +0000 (15:16 -0700)
commitd794a02111cd3393da69bc7d6dd2b6074bd037cc
treea455f01284f4503edfe8e335c333694711073736
parentba516de332c0e574457e58fb5aa0293e628b7b10
USB: fix memleak in usbfs

This patch fixes a memory leak in devio.c::processcompl

If writing to user space fails the packet must be discarded, as it
already has been removed from the queue of completed packets.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c