diff options
author | Lennart Sorensen <lsorense@csclub.uwaterloo.ca> | 2012-10-24 16:23:09 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-24 20:45:34 +0200 |
commit | f7bc5051667b74c3861f79eed98c60d5c3b883f7 (patch) | |
tree | 9d3595446c7a78e94f1e18bf305eb6f33eb327dd /drivers/usb/serial | |
parent | usb hub: use flush_work instead of flush_work_sync (diff) | |
download | linux-f7bc5051667b74c3861f79eed98c60d5c3b883f7.tar.xz linux-f7bc5051667b74c3861f79eed98c60d5c3b883f7.zip |
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/usb/serial')
-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) continue; kfree(portdata); } + kfree(serial->private); } #ifdef CONFIG_PM |