mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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>
This commit is contained in:
parent
61b0f7e5b5
commit
95ad072473
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue