Commit 3edf35ac authored by Lennart Sorensen's avatar Lennart Sorensen Committed by Greg Kroah-Hartman

USB: serial: Fix memory leak in sierra_release()

commit f7bc5051 upstream.

I found a memory leak in sierra_release() (well sierra_probe() I guess)
that looses 8 bytes each time the driver releases a device.
Signed-off-by: default avatarLen Sorensen <lsorense@csclub.uwaterloo.ca>
Acked-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8766126e
......@@ -993,6 +993,7 @@ static void sierra_release(struct usb_serial *serial)
continue;
kfree(portdata);
}
kfree(serial->private);
}
#ifdef CONFIG_PM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment