usb: serial: fix memory leak in generic driver
commit14a2fe817f8ca96cbe718165ec1ffba025ddc556
authorJohan Hovold <jhovold@gmail.com>
Wed, 6 Jan 2010 23:48:42 +0000 (6 15:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:38 +0000 (1 15:55 -0700)
tree4b31c3a2d6fd5ac8a59c6cf6ffb0ad40845bbe8e
parent70f176dfdcb13ee263a08c851ea5cd1747aab39c
usb: serial: fix memory leak in generic driver

commit 2591530204a76fecc843529ade56afe865dd2657 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c