mirror of https://gitee.com/openkylin/linux.git
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
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue