]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: visor: fix memory leak
authorJohan Hovold <jhovold@gmail.com>
Sat, 15 May 2010 15:53:48 +0000 (17:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:10:34 +0000 (11:10 -0700)
commit 199b113978015309dd02c69844c19a1be3f4dbcf upstream.

Fix memory leak for some devices (Sony Clie 3.5) due to port private
data not being freed on release.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/visor.c

index ad1f9232292d264506b16cb5b5bd8a625dc2e88d..c14087018887e62213cb75965c4e6fa9c519e403 100644 (file)
@@ -249,6 +249,7 @@ static struct usb_serial_driver clie_3_5_device = {
        .throttle =             visor_throttle,
        .unthrottle =           visor_unthrottle,
        .attach =               clie_3_5_startup,
+       .release =              visor_release,
        .write =                visor_write,
        .write_room =           visor_write_room,
        .write_bulk_callback =  visor_write_bulk_callback,