usb: serial: fix memory leak in generic driver
commit911b8be09d303ee5c63295be2ad7b39eec899f45
authorJohan Hovold <jhovold@gmail.com>
Wed, 6 Jan 2010 23:48:42 +0000 (6 15:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Jan 2010 18:49:29 +0000 (25 10:49 -0800)
treeaa323856b75bcc349e3e79849a0d1d08cac3d693
parent04f7ec720e5bc4413540ca5dedde8b9e5a30c401
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