aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/frontier
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-03-07 17:25:55 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-08 22:39:40 -0800
commit95ad0724738c30e47f35d37d4dcf1c4cce4e94c5 (patch)
tree6c6639c5ae7e8eec04bb17d87a3cdbe832dab175 /drivers/staging/frontier
parentstaging: cxt1e1: fix checkpatch errors with open brace '{' (diff)
downloadlinux-dev-95ad0724738c30e47f35d37d4dcf1c4cce4e94c5.tar.xz
linux-dev-95ad0724738c30e47f35d37d4dcf1c4cce4e94c5.zip
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.c4
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 */