diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-05-15 11:53:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:48 -0400 |
commit | 199b113978015309dd02c69844c19a1be3f4dbcf (patch) | |
tree | f3dbf0a5cbc70994baa76e47c91f286991700c6f /drivers/usb | |
parent | fa993ca8641ba650c762ea6701b0333118430d8c (diff) |
USB: visor: fix memory leak
Fix memory leak for some devices (Sony Clie 3.5) due to port private
data not being freed on release.
Cc: stable <stable@kernel.org>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/serial/visor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 094942707c7d..fb7fc4068fb6 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -249,6 +249,7 @@ static struct usb_serial_driver clie_3_5_device = { | |||
249 | .throttle = visor_throttle, | 249 | .throttle = visor_throttle, |
250 | .unthrottle = visor_unthrottle, | 250 | .unthrottle = visor_unthrottle, |
251 | .attach = clie_3_5_startup, | 251 | .attach = clie_3_5_startup, |
252 | .release = visor_release, | ||
252 | .write = visor_write, | 253 | .write = visor_write, |
253 | .write_room = visor_write_room, | 254 | .write_room = visor_write_room, |
254 | .write_bulk_callback = visor_write_bulk_callback, | 255 | .write_bulk_callback = visor_write_bulk_callback, |