diff options
author | Lennart Sorensen <lsorense@csclub.uwaterloo.ca> | 2012-10-24 10:23:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-31 09:51:35 -0700 |
commit | 3edf35acc3571092b522795f5b132fde4525b966 (patch) | |
tree | 830783d249a75403fa5dd2e47e85d0cbba2a9b9a | |
parent | 8766126e36d14abae5f1e13df3a548ef24c605b8 (diff) | |
download | kernel_samsung_crespo-3edf35acc3571092b522795f5b132fde4525b966.zip kernel_samsung_crespo-3edf35acc3571092b522795f5b132fde4525b966.tar.gz kernel_samsung_crespo-3edf35acc3571092b522795f5b132fde4525b966.tar.bz2 |
USB: serial: Fix memory leak in sierra_release()
commit f7bc5051667b74c3861f79eed98c60d5c3b883f7 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: Len Sorensen <lsorense@csclub.uwaterloo.ca>
Acked-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/serial/sierra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index d547638..ca06376 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -993,6 +993,7 @@ static void sierra_release(struct usb_serial *serial) continue; kfree(portdata); } + kfree(serial->private); } #ifdef CONFIG_PM |