Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 199b1139 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

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: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fa993ca8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -249,6 +249,7 @@ static struct usb_serial_driver clie_3_5_device = {
	.throttle =		visor_throttle,
	.throttle =		visor_throttle,
	.unthrottle =		visor_unthrottle,
	.unthrottle =		visor_unthrottle,
	.attach =		clie_3_5_startup,
	.attach =		clie_3_5_startup,
	.release =		visor_release,
	.write =		visor_write,
	.write =		visor_write,
	.write_room =		visor_write_room,
	.write_room =		visor_write_room,
	.write_bulk_callback =	visor_write_bulk_callback,
	.write_bulk_callback =	visor_write_bulk_callback,