summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLennart Sorensen <lsorense@csclub.uwaterloo.ca>2012-10-24 10:23:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-31 10:02:59 -0700
commita58af76b5dbe701c2d194648c579690ac6c29efd (patch)
treebbe1398dc886ef5dd79d45cbcc65a2f573be6a29 /drivers
parented7d272780f5185e9ca38cd63effd06a43c00cb1 (diff)
downloadlinux-3.10-a58af76b5dbe701c2d194648c579690ac6c29efd.tar.gz
linux-3.10-a58af76b5dbe701c2d194648c579690ac6c29efd.tar.bz2
linux-3.10-a58af76b5dbe701c2d194648c579690ac6c29efd.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/serial/sierra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index 449bf6d31e2..0223ca77d2d 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -992,6 +992,7 @@ static void sierra_release(struct usb_serial *serial)
continue;
kfree(portdata);
}
+ kfree(serial->private);
}
#ifdef CONFIG_PM