]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
usb: serial: fix memory leak in generic driver
authorJohan Hovold <jhovold@gmail.com>
Wed, 6 Jan 2010 23:48:42 +0000 (15:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Jan 2010 23:24:33 +0000 (15:24 -0800)
commit2591530204a76fecc843529ade56afe865dd2657
treea7cf437c4bb34308e871fc62ae5a9b24f2a9854f
parent25719e6b4631959c9ecb1db6967537a124c4a7fa
usb: serial: fix memory leak in generic driver

Fix a regression introduced by commit
715b1dc01fe44537e8fce9566e4bb48d6821d84b ("USB: usb_debug,
usb_generic_serial: implement multi urb write").

URB transfer buffer was never freed when using multi-urb writes.
Currently the only driver enabling multi-urb writes is usb_debug.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: Greg KH <greg@kroah.com>
Acked-by: Jason Wessel <jason.wessel@windriver.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c