Commit 95ad0724 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 61b0f7e5
...@@ -208,7 +208,9 @@ static void usb_alphatrack_delete(struct usb_alphatrack *dev) ...@@ -208,7 +208,9 @@ static void usb_alphatrack_delete(struct usb_alphatrack *dev)
kfree(dev->ring_buffer); kfree(dev->ring_buffer);
kfree(dev->interrupt_in_buffer); kfree(dev->interrupt_in_buffer);
kfree(dev->interrupt_out_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 */ /** usb_alphatrack_interrupt_in_callback */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment