Skip to content

Commit 199b113

Browse files
jhovoldgregkh
authored andcommitted
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>
1 parent fa993ca commit 199b113

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/usb/serial/visor.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ static struct usb_serial_driver clie_3_5_device = {
249249
.throttle = visor_throttle,
250250
.unthrottle = visor_unthrottle,
251251
.attach = clie_3_5_startup,
252+
.release = visor_release,
252253
.write = visor_write,
253254
.write_room = visor_write_room,
254255
.write_bulk_callback = visor_write_bulk_callback,

0 commit comments

Comments
 (0)