diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-03-07 17:25:55 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-08 22:39:40 -0800 |
commit | 95ad0724738c30e47f35d37d4dcf1c4cce4e94c5 (patch) | |
tree | 6c6639c5ae7e8eec04bb17d87a3cdbe832dab175 /drivers/staging/frontier | |
parent | 61b0f7e5b51e5b1f3625e110092d1b89627333b0 (diff) | |
download | linux-95ad0724738c30e47f35d37d4dcf1c4cce4e94c5.tar.bz2 |
staging: frontier: fix memory leak in usb_alphatrack_probe()
oldi_buffer and write_buffer need to free when usb_alphatrack_delete()
is called.
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/frontier')
-rw-r--r-- | drivers/staging/frontier/alphatrack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/frontier/alphatrack.c b/drivers/staging/frontier/alphatrack.c index edd5cef300d0..e59ee51ccbac 100644 --- a/drivers/staging/frontier/alphatrack.c +++ b/drivers/staging/frontier/alphatrack.c @@ -208,7 +208,9 @@ static void usb_alphatrack_delete(struct usb_alphatrack *dev) kfree(dev->ring_buffer); kfree(dev->interrupt_in_buffer); kfree(dev->interrupt_out_buffer); - kfree(dev); /* fixme oldi_buffer */ + kfree(dev->oldi_buffer); + kfree(dev->write_buffer); + kfree(dev); } /** usb_alphatrack_interrupt_in_callback */ |