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-24 14:45:34 -0400 |
commit | f7bc5051667b74c3861f79eed98c60d5c3b883f7 (patch) | |
tree | 9d3595446c7a78e94f1e18bf305eb6f33eb327dd /drivers | |
parent | 036546bf950b7916dcc051eb0d450e23028b487a (diff) |
USB: serial: Fix memory leak in sierra_release()
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-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 01d882cf3775..76ef95bcbbf2 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -959,6 +959,7 @@ static void sierra_release(struct usb_serial *serial) | |||
959 | continue; | 959 | continue; |
960 | kfree(portdata); | 960 | kfree(portdata); |
961 | } | 961 | } |
962 | kfree(serial->private); | ||
962 | } | 963 | } |
963 | 964 | ||
964 | #ifdef CONFIG_PM | 965 | #ifdef CONFIG_PM |